INSTALL GIT CURL RVM RUBY HEROKU POSTGRES
------------------------------
------------------------------
------------------------------
------------------------------
------------------------------
-------------------------------------------------------------------------------------------------
-------------
INSTALL GIT CURL RVM RUBY
#LINK:
https://rvm.io/rvm/install/
#LINK:
http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395
# Above 2 links used to install RVM.
# If Previously tried to install rvm or Then first remove (purge) it else start from step 5.
1. apt-get --purge remove ruby-rvm
2. rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh
3. exit
#Open new Terminal (ctrl+shift+T)
4. env | grep rvm
5. curl -L
get.rvm.io | bash -s stable --auto
6. exit
#Open new Terminal (ctrl+shift+T)
7. curl -L
https://get.rvm.io | bash -s stable --ruby
8. source /usr/local/rvm/scripts/rvm
9. rvm requirements
# rvm requirements will show the requirements of rvm like below in [cmd] run cmd.
# [10. apt-get install build-essential openssl libreadline6
libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev
libsqlite3-dev #sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev
ncurses-dev automake libtool bison subversion]
11. exit
#Open new Terminal (ctrl+shift+T)
12. source /usr/local/rvm/scripts/rvm
13. type rvm | head -1
14. rvm -v
15. ruby -v
16. type rvm | head -1
# It will show RVM is a function.
17. rvm list
# It will show list of ruby install on RVM.
18. exit
#Open new Terminal (ctrl+shift+T)
18. type rvm | head -1
19. rvm list
20. exit
#Open new Terminal (ctrl+shift+T)
21. rvm list
#Above cmd will not work. You have to run 'source
/usr/local/rvm/scripts/rvm' cmd every time you open new terminal. [To
avoid it change done in .bashrc file]
22. gedit ~/.bashrc
# Add [[ -s "/usr/local/rvm/scripts/rvm" ]] && source "/usr/local/rvm/scripts/rvm"
at the end of .bashrc file and save and close.
23. source /usr/local/rvm/scripts/rvm
23. rvm list
24. exit
#Open new Terminal (ctrl+shift+T)
25. rvm list
# Now rvm has been completed.
#You can install ruby using rvm.
------------------------------
------------------------------
---------------------------------------------------------------------
-
INSTALL RUBY ON RVM
1. rvm install ruby_version
# For example rvm install ruby-1.9.2-p180, rvm install ruby-1.9.2-p320, rvm install 1.8.7 etc.
------------------------------
---------------------------------------------------------------------
------------------------------
-
INSTALLATION of HEROKU
1 => gem install heroku
5 => ssh-keygen -t rsa ( Create your system's new ssh key)
(link:
https://devcenter.heroku.com/articles/keys)
6 => heroku keys:add
7 => heroku keys
8 => git clone git@heroku.com:iqglobal.git -o heroku
9 => cd iqglobal/
10 => bundle install
11 => rake db:create
12 => rake db:migrate
------------------------------
------------------------------------------------------------------
------------------------------
----
INSTALLATION of POSTGRES
Require libpg for installing of pg,when we install pg(gem install pg) then this type of problem create.
1 => apt-get install libpq-dev
Installation of postgres and set create user name from root
1 => sudo apt-get install postgresql-8.4
2 => su postgres
3 => sudo -u postgres createuser --superuser $USER
4 create database "iQglobal_development" (
rake db:create)
5 => pg_restore --verbose --clean --no-acl --no-owner -d iQglobal_development database.dump
------------------------------
------------------------------
------------------------------
----------------------------------------