Class: GitDeployController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- GitDeployController
- Defined in:
- lib/generators/git_ruby_deploy/templates/config/controllers/git_deploy_controller.rb
Instance Method Summary collapse
Instance Method Details
#deploy ⇒ Object
2 3 4 5 6 7 |
# File 'lib/generators/git_ruby_deploy/templates/config/controllers/git_deploy_controller.rb', line 2 def deploy system('git pull origin master') system('bundle') system('rake db:migrate') render json: 'Deploy done.' end |