Table of Contents
Clone repository
git clone [email protected]:tamu-edu-students/csce606-ELRC-Synergistic-Leadership-Theory.git
Install all dependencies
cd csce606-ELRC-Synergistic-Leadership-Theory/rails_root
bundle install
Create master key (obtain master key either via Dr.Ritchey or by emailing team members in contact section)
cd rails_root
echo "<master key here>" > ./config/master.key
Generate database
rails db:migrate
rails db:seed
Start server
rails server
Setup test database
rails db:test:prepare
Run rspec tests
bundle exec rspec
Run cucumber tests
bundle exec cucumber
Create Heroku application
heroku create [appname]
Add buildpacks
heroku buildpacks:add https://github.com/timanovsky/subdir-heroku-buildpack.git
heroku buildpacks:add heroku/ruby
Add config vars
heroku config:set PROJECT_PATH=rails_root
heroku config:set RAILS_MASTER_KEY=<master key here>
Install Heroku Postgres and attach to application
Push to heroku app
git push heroku main
Generate database
heroku run rails db:migrate
heroku run rails db:seed
Andres Santiago [email protected]
Jacob Mathes [email protected]
Minseo Park [email protected]
Brandon Nguyen [email protected]
Yi-Ting Lee [email protected]
Chengyuan Qian [email protected]