Downloading Production Data: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Rails 3 | == Rails 3 == | ||
<code> | |||
cd <your_github_repository> | cd <your_github_repository> | ||
bundle install | bundle install | ||
Line 19: | Line 20: | ||
Password: <realm pw.>] | Password: <realm pw.>] | ||
bundle exec rake db:migrate | bundle exec rake db:migrate | ||
</code> | |||
Rails 4 | == Rails 4 == | ||
cd <your_github_repository> | cd <your_github_repository> | ||
bundle install | bundle install | ||
Line 33: | Line 35: | ||
ssh -L 127.0.0.1:2222:expertiza.ncsu.edu:22 <your-realm-id>@remote.eos.ncsu.edu | 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.] | Leave this tunnel open while executing the following commands.] | ||
bundle exec cap proxy | bundle exec cap proxy db:pull | ||
[When prompted to log in: | [When prompted to log in: | ||
Proxy server: localhost | Proxy server: localhost |
Revision as of 13:36, 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 db:pull
[When prompted to log in: Proxy server: localhost Login: <your-realm-id> Port: 22 Password: <realm pw.>]
bundle exec rake db:migrate