Sign up to create your own snipts, or login.

Public snipts » production The latest public production snipts.

showing 1-4 of 4 snipts for production
  • remove .svn folders
    find . -name ".svn" -type d -exec rm -rf {} \;
    

    copy | embed

    0 comments - tagged in  posted by jrguitar21 on Jan 06, 2010 at 11:47 a.m. EST
  • Run DB Migrate on production
    rake db:migrate RAILS_ENV=production
    

    copy | embed

    0 comments - tagged in  posted by ludicco on Jul 15, 2009 at 6:23 a.m. EDT
  • Warehouse permission settings on Dreamhost
    # in the Warehouse settings page:
    #  Shell command to run when permissions are updated:
    
    rake warehouse:build_config REPO=:subdomain CONFIG=config/:subdomain.access
    
    # Note 1:  the above works for both the :path URL method
    #   (eg http://wh.example.com/reponame/)  
    # as well as the :subdomain URL method 
    #   (eg http://reponame.wh.example.com/)
    #
    # During WH setup, you should create a symlink to the .access file created 
    # by the Dreamhost panel for each repo you want to control with Warehouse.
    
    cd /your_web_app_directory/config
    ln -s /home/username/svn/reponame.access
    

    copy | embed

    0 comments - tagged in  posted by jrguitar21 on May 15, 2009 at 11:30 a.m. EDT
  • restart a Rails Web Application on DreamHost.
    # restart a Rails Web Application on DreamHost. this requires that you've 
    # enabled mod_rails (Passenger) support for the app in the DreamHost panel
    
    $ touch /your_web_app_directory/tmp/restart.txt
    
    # Passenger looks for a file tmp/restart.txt and if it exists, it reloads 
    # your app, and refreshes all your files then deletes the tmp/restart.txt file
    
    # The other way to force a restart is through the dreamhost panel:
    # Domains > Manage Domains > Edit your-app.domain.com 
    #  >> submit the form through the "fully host this application" button.
    

    copy | embed

    0 comments - tagged in  posted by jrguitar21 on May 15, 2009 at 11:20 a.m. EDT
Sign up to create your own snipts, or login.