Chapman University's news and stories website.
- Ruby >= 2.4.1
- Rails >= 5.1.4
git clone git@github.com:chapmanu/newsroom.git
cd newsroom
bundle install
# Copy dist versions of config files into place
cp -v config/database.yml{.dist,}
The master encryption key for Chapman can be found in Passpack. Place the key under config/
in a new file called secrets.yml.key
. You will need this key to run Newsroom locally and to run tests.
To start the local server, use webrick (puma is not configured to run locally):
bundle exec rails s webrick
Send browser to http://localhost:3000
All tests:
bundle exec rake test
Individual test file:
bundle exec rake test TEST=test/controllers/ping_controller_test.rb
Webserver provisioning is automated with Ansible. Requires minimum major Ansible version 2.4. See Ansible page on WimOps Wiki for installation instructions.
Playbooks must be run from the ansible
directory:
cd devops/ansible
To provision staging server:
ansible-playbook webserver.yml -i hosts/staging