Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Beanstalk document directory

I've successfully uploaded my application to AWS Beanstalk and its environment URL is also working. But whenever I change any PHP scripts under /var/www/html/ it does not reflects changes.

I'm not sure about directory location of Beanstalk application and assuming its a /var/www/html/ am trying this.

Thanks much.

like image 764
lnepal Avatar asked Mar 19 '14 10:03

lnepal


People also ask

Where does Elastic Beanstalk store files?

In Elastic Beanstalk, where does it store the application files and server log files? Application files are stored in S3. The server log files can only be stored in the attached EBS volumes of the EC2 instances, which were launched by AWS Elastic Beanstalk. Application files are stored in S3.

What is .ebextensions folder?

ebextensions ) to your web application's source code to configure your environment and customize the AWS resources that it contains. Configuration files are YAML- or JSON-formatted documents with a . config file extension that you place in a folder named . ebextensions and deploy in your application source bundle.


1 Answers

When you deploy your application to a PHP-based environment running in Elastic Beanstalk, your application code is stored in /var/www/html/. This can be changed by changing the DocumentRoot setting in the Elastic Beanstalk web console or via .ebextensions settings.

When you deploy changes, it takes a few minutes for the deployment process to complete — it isn't instantaneous.

[…] whenever I change any PHP scripts under /var/www/html/ it does not reflects changes.

How are you making these changes?

like image 78
Ryan Parman Avatar answered Sep 28 '22 11:09

Ryan Parman