Amazon-Web-Services – Elastic Beanstalk AWS is ignore .config file

I have a web application running on elastic beanstalk. For some reason, I was able to install the composer file to run my laravel application. The problem is that there is no other configuration file It works. I have put newrelic.config into the .ebextensions/ directory, but the file is ignored.

I recently tried to use this, AWS Elastic Beanstalk, running a cronjob to create a cron job, But it does not work properly.

Example of .config file:

container_commands:
01_some_cron_job:
command: "cat. ebextensions/some_cron_job.txt> /etc/cron.d/some_cron_job && chmod 644 /etc/cron.d/some_cron_job"
leader_only: true

When I enter the ec2 instance, there is no some_cron_job like this Directory.

The source was submitted to beanstalk, but beanstalk did not run the command.

How to make beanstalk confirm the .config file. Fixing this cronjob will also fix the installation of new files, because of these two Both configurations are ignored, I don’t know why.

Try to put it in the command section. It is more like a server command than a container command.

commands:
01_some_cron_job:
command: "cat .ebextensions/some_cron_job.txt > /etc/cron.d/some_cron_job && chmod 644 /etc/cron.d/some_cron_job"
leader_only: true

I have one on flexible beanstalk Running web application. For some reason, I was able to install composer files To run my laravel application. The problem is that there is no other configuration file to work. I have put newrelic.config into the .ebextensions/ directory, but the file is ignored.

I recently tried to use This, AWS Elastic Beanstalk, running a cronjob creates a cron job, but it does not work properly.

Example of the .config file:

container_commands:< br /> 01_some_cron_job:
command: "cat .ebextensions/some_cron_job.txt> /etc/cron.d/some_cron_job && chmod 644 /etc/cron.d/some_cron_job"
leader_only: true

When I entered the ec2 instance, there was no such directory as some_cron_job.

The source was submitted to beanstalk, but beanstalk did not run the command.

How to make beanstalk confirm the .config file . Fixing this cronjob will also fix the installation of new files, because these two configurations are ignored, I don’t know why.

Try to put it in the command Part. It is more like a server command than a container command.

commands:
01_some_cron_job:
command: "cat .ebextensions/some_cron_job .txt> /etc/cron.d/some_cron_job && chmod 644 /etc/cron.d/some_cron_job"
leader_only: true

Leave a Comment

Your email address will not be published.