Downloading Production Data

From Expertiza_Wiki
Revision as of 13:41, 27 August 2014 by Ajkofink (talk | contribs) (→‎Rails 4)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Rails 3

cd <your_github_repository>
bundle install
bundle exec cap -v
ruby -v
source /etc/profile
rvm use 1.8.7
rails -v
bundle exec rails -v
bundle exec rake db:setup
# Create tunnel in another window:
ssh -L 127.0.0.1:2222:expertiza.ncsu.edu:22 <your-realm-id>@remote.eos.ncsu.edu
# Leave this tunnel open while executing the following commands.
bundle exec cap proxy load_data
# When prompted to log in:
# Proxy server: localhost
# Login: <your-realm-id>
# Port: 22
# Password: <realm pw.>
bundle exec rake db:migrate

Rails 4

cd <your_github_repository>
bundle install
bundle exec cap -v
ruby -v
source /etc/profile
rvm use 1.8.7
rails -v
bundle exec rails -v
bundle exec rake db:setup
# Create tunnel in another window:
 ssh -L 127.0.0.1:2222:expertiza.ncsu.edu:22 <your-realm-id>@remote.eos.ncsu.edu
# Leave this tunnel open while executing the following commands.]
bundle exec cap proxy db:pull
#  When prompted to log in:
#   Proxy server: localhost
#    Login: <your-realm-id>
#    Port: 22
#   Password: <realm pw.>]
bundle exec rake db:migrate