Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.60 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Deploying an app for the first time
  2.  
  3. Locally:
  4.  
  5.     cap deploy:ownership -s user=admin
  6.     cap deploy:setup
  7.  
  8. Verify & tweak yaml configs, Aloha, etc (most of which were generated by socialist) in `/var/www/dashboard.app/shared`.
  9.  
  10.     cap deploy
  11.  
  12. Remotely:
  13.  
  14. Install any misc dependencies the app might have for the app environment to load, or dev headers for gems with c extensions:
  15.  
  16.     sudo apt-get install libxml2-dev libxslt-dev
  17.     sudo gem install nokogiri
  18.  
  19.     cd /var/www/dashboard.app/current
  20.  
  21.     rake db:setup RAILS_ENV=production
  22.  
  23. Setup Apache:
  24.  
  25.     cap apache:config apache:enable apache:restart
  26.  
  27. Done!
clone this paste RAW Paste Data