Jump to content

Recommended Posts

Hello everyone, thought it might be a good idea to start a topic on "getting Presta running on Amazon Elastic Beanstalk"

 

I'm currently going through the pain of trying to get it working. Has anyone done this yet which we can document?

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

I'm not familiar to Prestashop but I'm trying to install it on a Amazon AWS Elastic Beanstalk environment. I'll tell you my progress.

Any progress by your side?

My project is on hold, i may continue next week.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Im having troubles with that! Seems that the files keep re-starting and i keep losing my data.

 

It happens because prestashop saves data into the web app directories (i.e. product images into img/p/)

 

File structure of EC2 instances launched by elastic beanstalk are not persistent. when beanstalk adds/replace instance into the load balancer, it launches a new EC2 and deploy the current version that doesn't have all the data you added after first launch.

 

A possible solution for this is:

- Create a EBS volume and have it mounted by the EC2 instances used by your beanstalk environment (save a custom ami, and use it in your environment configuration)

- Change the prestashop config files to make it save data on the EBS file structure instead (c.f. config/defines.inc.php in prestashop 1.5.4)

- upload a new version in eb with this config

 

EC2 instances added/replaced by the load balancer will have the ebs volume mounted, so they will have access to the data you inserted on previous instances.

 

Possible list of folder to move to ebs : download, img, upload

Edited by katsuo11 (see edit history)
Link to comment
Share on other sites

  • 3 months later...

It's been many months since the last post here.  No one that has posted in this thread came back to tell of success/failure.  I'd love to hear it because I'm about to do just this thing - install Prestashop in AWS Elastic Beanstalk.  Any tips, steps, blog posts, guides that have come about since the last post would be immeasurably helpful.  Thanks!

Link to comment
Share on other sites

  • 5 months later...

I haven't yet tackled the Elastic Beanstalk deployment.  I've made an acceptable deployment on load-balanced servers of moderate power.  I'd like to find some billable hours at some point though to return to this challenge.  If I do, I'll blog it and post the link here.

Link to comment
Share on other sites

Not necessary at all, but very convenient; taking advantage of elastic beanstalk's automated provisioning of scalable infrastructure saves time, for me at least.  I'm in a situation where I'd prefer to spend my time being a developer instead of my own systems administrator.

Link to comment
Share on other sites

Not necessary at all, but very convenient; taking advantage of elastic beanstalk's automated provisioning of scalable infrastructure saves time, for me at least.  I'm in a situation where I'd prefer to spend my time being a developer instead of my own systems administrator.

 

Thanks for the reply. I know that heroku was an alternative but I haven't heard any real feedback about deploying PrestaShop on these type of engines. 

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...