Guest User

Untitled

a guest
Feb 27th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  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!
Add Comment
Please, Sign In to add comment