Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

single file git deployment into server

I'm using Capistrano for deployment of rails application; how can one file be updated on the server without making a new release?

For example :

Suppose I made changes to only my UserController.rb. and committed it the to git server, how should I get this update onto the server without making a new deployment.

like image 610
Neel Avatar asked Sep 11 '26 04:09

Neel


1 Answers

Capistrano has a deploy task for updating single files where a full deploy isn't necessary.

cap -e deploy:upload

In your case it would probably be like this:

cap deploy:upload FILES='app/controllers/UserController.rb'

You might also have to restart your app

cap deploy:restart
like image 138
doritostains Avatar answered Sep 13 '26 22:09

doritostains