NGINX: Kill process
Posted . Visible to the public.
sudo kill $(cat /opt/nginx/logs/nginx.pid)
Related cards:
Nginx: Restart
IF YOU HAVE init.d
sudo /etc/init.d/nginx restart
/etc/init.d/nginx: location of nginx startup script
IF YOU DO NOT HAVE init.d
service nginx restart
/opt/nginx variety:
sudo kill $(cat /opt/nginx/log...
Sidekiq: Start the sidekiq process
bundle exec sidekiq -e staging -d -L log/sidekiq.log
sidekiq -h
-c, –concurrency INT processor threads to use
-d, –daemon Daemonize process
-e, –environment ENV...
NGINX: Symlink sites-available
sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/example.com
NGINX: CORS Access
https://gist.github.com/algal/5480916
https://gist.github.com/alexjs/4165271
https://michielkalkman.com/snippets/nginx-cors-open-configuration.html
http://enable-cors.org/server_nginx.html
http://blog.ionic.io/handling-cors-issues-in-ionic/
...
Ruby on Rails: Start Unicorn service
unicorn_rails -c config/unicorn.rb -D -E staging
-D flag: Start as daemon process (i.e. in background.)
-c flag: config file
-E flag: environment to run in
Posted by Luis Romero to Custom Exposure (2015-07-20 21:04)