Skip to content

Instantly share code, notes, and snippets.

@lealeelu
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lealeelu/167092b6feedba8700e7 to your computer and use it in GitHub Desktop.
Save lealeelu/167092b6feedba8700e7 to your computer and use it in GitHub Desktop.
Avalon functions for .bashrc
# Avalon functions
function avalon_start() { #says start but it's really more of a restart
bundle install;
rake db:migrate;
rake db:test:prepare;
rake avalon:services:stop;
rake avalon:services:start;
rake red5:start;
rails s;
}
function avalon_stop() {
rake avalon:services:stop;
rake red5:stop;
}
vim ~/.bashrc #add the functions
source ~/.bashrc
cd <avalon directory>
avalon_start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment