IMPORTANT!

Snipt is going open source. We've toyed with this idea for quite a while, and have finally decided it's the right way to move forward.

A few things:
  • The entire Snipt source code will be released on GitHub under the 3-clause BSD License on Friday, September 10th.
  • While we'd like to think we're perfect, we realize we're only human. By open sourcing the software that runs this website, certain bugs or security flaws may be discovered that could compromise the privacy of your snipts.
  • Only the Lion Burger team will be able to push commits to the Snipt.net site. Contributors should send a pull request to add new features or submit patches.
  • By using this site, you agree not to be too angry or take any legal action against Lion Burger should this whole thing go up in flames some day.
  • Follow us on Twitter for updates.
I agree, close this message
Sign up to create your own snipts, or login.

Latest 100 public snipts » production The latest public production snipts.

showing 1-5 of 5 snipts for production
  • svn ignore passwords
    # on production servers its often a good idea not to store svn passwords.
    # heres a one-liner to do just that:
    echo "store-passwords=no" >> ~/.subversion/servers && rm -f ~/.subversion/auth/svn.simple/*
    

    copy | embed

    0 comments - tagged in  posted by jrguitar21 on Aug 11, 2010 at 6:14 p.m. EDT
  • 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.