Downloading Production Data: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
(Created page with "Rails 3: Rails 4:")
 
No edit summary
Line 1: Line 1:
Rails 3:
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:
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 load_data
[When prompted to log in:
  Proxy server: localhost
  Login: <your-realm-id>
  Port: 22
  Password: <realm pw.>]
bundle exec rake db:migrate

Revision as of 13:33, 27 August 2014

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 load_data

[When prompted to log in:
  Proxy server: localhost
  Login: <your-realm-id>
  Port: 22
  Password: <realm pw.>]

bundle exec rake db:migrate