1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Set for production

This commit is contained in:
2014-12-22 07:21:18 -05:00
parent 90b96bb218
commit fb2badd931
5 changed files with 15 additions and 11 deletions

12
Gemfile
View File

@@ -42,16 +42,6 @@ end
gem 'devise'
gem 'cancan'
gem 'bootstrap-sass'
gem 'mysql'
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.1.2'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]

View File

@@ -9,6 +9,14 @@ development:
pool: 5
timeout: 5000
#adapter: mysql
#encoding: utf8
#database: wrestlingtourney
#pool: 5
#username: root
#password: password
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.

View File

@@ -28,4 +28,8 @@ if Rails.env.development?
Wrestler.create(name: 'Guy 16', school_id: 200, weight_id: 200, original_seed: 16, season_win: 0, season_loss: 0, criteria: 'N/A')
end
if Rails.env.production?
User.create(email: 'jacob.wimer@gmail.com', password: 'Welcome12', password_confirmation: 'Welcome12')
end

1
refresh_wrestling_db.sh Normal file
View File

@@ -0,0 +1 @@
mysqldump -h db.codywimer.com -u heroku_jcw -p wrestlingtourney | mysql -h localhost -u root -ppassword wrestlingtourney

1
set_up_dev_db.sh Normal file
View File

@@ -0,0 +1 @@
mysql -u root -ppassword -e 'CREATE DATABASE wrestlingtourney;'