Last active
August 29, 2015 14:02
-
-
Save prashanth-sams/0cbe8188070b5fe30045 to your computer and use it in GitHub Desktop.
Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to Set Temporary Java Environment | |
========================================== | |
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_03 | |
export PATH=$PATH:$JAVA_HOME/bin | |
javac -version | |
which javac | |
How to populate data | |
========================================== | |
nano ~/.bashrc | |
alias populate='RAILS_ENV=development bundle exec rake projectname:db:populate' /** paste the below in bashrc **/ | |
Ctrl + y to save bashrc | Ctrl + x to quit bashrc | |
$ SYSVINE=true populate | |
RAILS_ENV=development bundle exec rake db:migrate | |
How to avoid typing sudo all time | |
========================================== | |
sudo -s | |
sudo subl /** sublime **/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment