Downloading Production Data: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
# 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: | |||
# Proxy server: localhost | |||
# Login: <your-realm-id> | |||
# Port: 22 | |||
# Password: <realm pw.> | |||
bundle exec rake db:migrate | bundle exec rake db:migrate | ||
</code> | </code> | ||
Line 33: | Line 33: | ||
bundle exec rails -v | bundle exec rails -v | ||
bundle exec rake db:setup | 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 | 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 | 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 | bundle exec rake db:migrate | ||
</code> | </code> |
Latest revision as of 13:41, 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