Jump to content

[deployment] Creating a HowTo for deployment and development workflow


PrestaShop Deployment  

18 members have voted

  1. 1. How do you deploy your PS projects?

    • Coping files to server with FTP client
      10
    • Editing files live on production server
      3
    • Capistrano
      6
    • Vlad the Deployer
      0
    • Other, mention in post
      2
  2. 2. Do you use any SCM system for your PS projects?

    • GIT
      13
    • SVN
      0
    • CVS
      0
    • Mercurial
      0
    • Bazaar
      0
    • none
      5


Recommended Posts

Welcome everyone!

 

I were asking myself recently, why just not use any GIT repository for hosting and managing versions of my PS projects just like I do with RoR projects. To have different environments like developing, staging, and production/live. I found this way to be much easier and friendlier for me as a developer.

 

My Idea is to find a way to make PrestaShop deployment more automatic with tool like Capistrano. This would be involving a HowTo or maybe even a capistrano gem, which would add sufficient tasks/generators. But I want to discuss it with PS community, if someone isn't already using it, and would give some hints.

 

For now I will probably move catalogues like /download /upload /images/c(cms|tmp|etc) and others which are involving user interaction to /shared where are stored files independently from code base. Also files like config/config.inc.php for holding information specific for each environment.

 

Also how you would see installation process? Remove install folder from repo after installing it on each environment?

 

Any other improvements, tips or suggestions ?

 

Best

@zalesz

 

Here are some additional links:

https://github.com/c...rano/capistrano

https://help.github....with-capistrano

http://devblog.imedo...rano-2-and-git/

  • Like 3
Link to comment
Share on other sites

  • 3 years later...

Great idea, I'm also looking for a better dev workflow.

 

I'm using prestashop with Composer / Git and Docker, but didn't try Capistrano as I want for the moment.

 

 

 

For now I will probably move catalogues like /download /upload /images/c(cms|tmp|etc) and others which are involving user interaction to /shared where are stored files independently from code base.

 

Take care of modules too (actually my big problem). Prestashop dev comes with nearly no modules and additional can be installed on production.

 

If you do a deploy like this, all modules will be reseted.

 

Have you a working example of Capistrano deployment actually?

Link to comment
Share on other sites

  • 1 month later...
I'm starting a project who I want to use deploy system. I have the code in bitbucket and i'm trying to use capistrano to deploy in server.

 

I have this problems/doubt:

 

- I do a task in deploy.rb to create a cache folder in every deploy. Smarty directory in cache creates PrestaShop but, cachefs, purifier, push, sandbox and tcpdf was not created. Would be created by myself like cache folder?

 

- In shared folder to capistrano I put img, and vendor folders. 

 

It would be nice if someone worked with prestashop and capistrano to tell his experience.

 

Sorry for my English

Link to comment
Share on other sites

  • 2 years later...
  • 4 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...