Downloading Production Data: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Rails 3:
== Rails 3 ==
cd <your_github_repository>
<code>
bundle install
cd <your_github_repository>
bundle exec cap -v
bundle install
ruby -v
bundle exec cap -v
source /etc/profile
ruby -v
rvm use 1.8.7
source /etc/profile
rails -v
rvm use 1.8.7
bundle exec rails -v
rails -v
bundle exec rake db:setup
bundle exec rails -v
[Create tunnel in another window:
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.]
  # 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
  Login: <your-realm-id>
# Login: <your-realm-id>
  Port: 22
# Port: 22
  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>
<code>
bundle install
cd <your_github_repository>
bundle exec cap -v
bundle install
ruby -v
bundle exec cap -v
source /etc/profile
ruby -v
rvm use 1.8.7
source /etc/profile
rails -v
rvm use 1.8.7
bundle exec rails -v
rails -v
bundle exec rake db:setup
bundle exec rails -v
[Create tunnel in another window:
bundle exec rake db:setup
ssh -L 127.0.0.1:2222:expertiza.ncsu.edu:22 <your-realm-id>@remote.eos.ncsu.edu
# Create tunnel in another window:
  Leave this tunnel open while executing the following commands.]
  ssh -L 127.0.0.1:2222:expertiza.ncsu.edu:22 <your-realm-id>@remote.eos.ncsu.edu
bundle exec cap proxy load_data
  # Leave this tunnel open while executing the following commands.]
  [When prompted to log in:
bundle exec cap proxy db:pull
  Proxy server: localhost
  When prompted to log in:
   Login: <your-realm-id>
Proxy server: localhost
   Port: 22
#   Login: <your-realm-id>
  Password: <realm pw.>]
#   Port: 22
bundle exec rake db:migrate
Password: <realm pw.>]
bundle exec rake db:migrate
</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