Skip to content

Checking existence of database credentials before trying to access key #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![CircleCI](https://circleci.com/gh/aspc/aspc-website/tree/master.svg?style=svg)](https://circleci.com/gh/aspc/aspc-website/tree/master)
[![CircleCI](https://circleci.com/gh/aspc/aspc-website/tree/master.svg?style=svg)](https://circleci.com/gh/aspc/aspc-website/tree/master)
[![Coverage Status](https://coveralls.io/repos/github/aspc/aspc-website/badge.svg?branch=master)](https://coveralls.io/github/aspc/aspc-website?branch=master)


Expand All @@ -20,7 +20,7 @@ with information about setting up this project to work with an IDE, our core tec
1. Clone this repo
2. Install [Vagrant](https://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
3. Run `vagrant up` from inside the cloned directory. Follow the prompts, default options are fine. This will handle dependency installation and all that jazz.
4. Run `vagrant ssh`, `cd /vagrant`, and then `rails server -b 0.0.0.0 -p 3000`.
4. Run `vagrant ssh`, `cd /vagrant`, `bundle install`, `yarn install`, and then `rails server -b 0.0.0.0 -p 3000`.
5. Navigate to [localhost:3000](http://localhost:3000) to see a local copy of this website up and running!

## Contributing
Expand Down
8 changes: 5 additions & 3 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ test:
#
production:
<<: *default
database: aspc_production
username: aspc
password: <%= Rails.application.credentials[:database_credentials][:production] %>
<% if Rails.application.credentials[:database_credentials].present? %>
database: aspc_production
username: aspc
password: <%= Rails.application.credentials[:database_credentials][:production] %>
<% end %>