I have a Rail application installed using Circle CI after automatic creation by Search CI, but I want to restart Nginx server, I've added " sudo service nginx restart
" in my circle.iml
error: sudo service nginx restart return exit code 1 nginx: unknown service function fail: sudo service nginx restart
I also configured / deploy.rb
To: deploy: restart,: Clear_cache the roles (web) perform: sudo, "service nginx restart" end end
still does not restart the Nginx server?
Trying to start nginx with circle.yml
Because the command will run on the CI server, not your intended web server.
Not sure why the attempt to restart with Capistrano is fai gender.
If you are using a passenger with nginx, the second way to restart the nginx server on a Rail app is to create a tmp / restart.txt
file in the app directory / Modify
See and for clarification.
config / deploy.rb
applies the following code snippet logic:
Namespace: Deploy the "Restart the App" task : Restart the roles (: app), in :: sequence, wait: 5 execute: touch, release_path.joined ('tmp / restart.txt') and end
No comments:
Post a Comment