How do you update your web application on the server?

I know Capistrano , but for me it's too hard. Personally, I created two Mercurial repositories, one on the production server and the other on my local dev machine. Regularly, when a new function is ready, I push the changes from the repository on my local machine to the repository on the server, and then update it on the server. This is a fairly simple and quick way to synchronize files on multiple computers, but does not help to update the database.

What is your solution to the problem?

+7
web-applications deployment maintenance administration
source share
5 answers

I used git push to publish on my web server, but lately I just used rsync. I try to make my site agnostic about where it works, as much as possible (using relative paths, etc.), and so far it has worked very well. The only problem is database synchronization, and for this I usually use the production database as a wizard and do regular backups and import to my test database.

+1
source share

Or Fabric , if you prefer Python.

+1
source share

what is the heavy weight about capistrano? if you want to sync files then rsync is sure to be fine. but if you need to do db updates, maybe the cover is not so bad?

+1
source share

@Andrey

To use git push to deploy your site, you will need to first configure the remote server in your .git / config file to click. Then you need to configure the hook, which basically will do git reset --hard, to copy the code you just copied to the repository into the working directory.

I know this is a bit vague, but I actually deleted the server side .git folder as soon as I switched to rsync, so I don't have the exact scripts that I used to do the magic. This may be a good candidate for a complete question, though, so you can get more answers this way.

edit: I know it has been a while, but in the end I found what I used again:

Deploy a project using git push

0
source share

I assume you are talking about Ruby on Rails.

Check out the HowTo wiki:

http://wiki.rubyonrails.com/rails/pages/Howtos#deployment

0
source share

All Articles