mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Set for production
This commit is contained in:
12
Gemfile
12
Gemfile
@@ -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]
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
1
refresh_wrestling_db.sh
Normal 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
1
set_up_dev_db.sh
Normal file
@@ -0,0 +1 @@
|
||||
mysql -u root -ppassword -e 'CREATE DATABASE wrestlingtourney;'
|
||||
Reference in New Issue
Block a user