Jump to content

Working with Git


Recommended Posts

Hello every one,

 

I'm new to this forum and start working with Prestashop recently.

 

I have a site in production that I deployed using git, cause I found it's the best way to deploy web application.

 

But, I wonder if there is any tips on deploying prestashop with git ?

 

I found this question on stackoverflow but can't add a comment cause I don't have enough reputation...

http://stackoverflow.com/questions/25383976/prestashop-ecommerce-software-git-workflow

 

So, my concern is how to deploy properly the modules ?

 

For now, here is what I've done, but I think it's wrong :

  • add the /module in the .gitignore file
  • exclude all the module I want to modify or add my self
  • install and update "manually" modules in production

I though if I deploy with git the module and the updates, my prestashop in production won't be inform of the updates, rights ?

 

e.g. : I deploy a module the I've not install in production, the module won't appears as installed, even if the file are present cause the module is not marked as installed in the DB.

e.g. 2 : I deploy an update of a module I made previously locally, the module will stay at the previous version in production event if the file are updated cause the version in the DB is still at the previous number.

 

Am I wrong with those assumptions ?

 

So, my solution would be :

  • Not excluding the /module in the .gitignore file
  • Install and/or update my modules "manually" on localhost and, if nothing broke
  • Install and/or update my modules "manually" on my server
  • then commit the changes with git and git push on the server

Does it sounds good to you ?

Is there as simplest way ?

 

Thanks for reading me.

  • Like 1
Link to comment
Share on other sites

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...