neil-s / mayballmarketplace

0 stars 0 forks source link

Deploy to staging server #11

Open neil-s opened 10 years ago

neil-s commented 10 years ago

I assume we're hosting this on your existing server, James McAulay? Could you give us details of the machine? Can it run Python 3.3 and PostgreSQL? @gfarrell do you have any ideas on how to handle deployment? I'm thinking a staging and a prod branch on the repo here, with either a post-commit hook or manually pulling the code into a repo on the server, running migrations and restarting the server.

gfarrell commented 10 years ago

I normally use a production branch as you suggest and git push with a post-commit hook to do all the migrations. I have found it to be quite complicated sometimes but it should be okay. There are other methods using various command line utilities, but I think just having a production remote is the best. Alternatively, we can use something that hooks into github (I don't know exactly how this works) and triggers a pull on the server, but that's a bit more involved.