Downloading Production Data: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
== Rails 3 == | == Rails 3 == | ||
<code> | <code> | ||
cd <your_github_repository> | cd <your_github_repository> | ||
bundle install | bundle install | ||
bundle exec cap -v | bundle exec cap -v | ||
ruby -v | ruby -v | ||
source /etc/profile | source /etc/profile | ||
rvm use 1.8.7 | rvm use 1.8.7 | ||
rails -v | rails -v | ||
bundle exec rails -v | bundle exec rails -v | ||
bundle exec rake db:setup | bundle exec rake db:setup | ||
# Create tunnel in another window: | # Create tunnel in another window: | ||
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 load_data | bundle exec cap proxy load_data | ||
[When prompted to log in: | [When prompted to log in: | ||
Proxy server: localhost | Proxy server: localhost | ||
Line 19: | Line 19: | ||
Port: 22 | Port: 22 | ||
Password: <realm pw.>] | Password: <realm pw.>] | ||
bundle exec rake db:migrate | bundle exec rake db:migrate | ||
</code> | </code> | ||
Revision as of 13:39, 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