Related cards:
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
Rails: Deploy Application using Capistrano
First, check that the deploy is ready to go:
cap ##ENVIRONMENT## deploy:check
Then, deploy away!
cap ##ENVIRONMENT## deploy
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...
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/
...
TextMate CheatSheet
⌃ Control
⌥ Option
⌘ Command
⇧ Shift
⎋ Escape
⌅ Enter
↩ Return
⌦ Forward Delete
⌫ Backward Delete
﹖⃝ Help
↖ Home
↘ End
⇞ Page Up
⇟ Page Down
⇥ Tab
⇤ Back-tab
HTML BUNDLES
Insert Open/Close Tag (⌃<) — this command will take the word just typed an...