Skip to content
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

Actually use a production environment in our production setup #218

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DonIsaac
Copy link
Member

Our production setup was actually running in 'development' - sure, it's not using shotgun, but all development dependencies were still being installed, and both rack and puma were configured for development. This PR fixes this.

Additionally, better-errors was not working because of our use of docker. By default, it is configured to only return better-errors error pages when requests are from localhost. This is now fixed, and errors in development should display code snippets from each part of an error's stacktrace.

- fix: `docker-compose.yml` sets relevant env variables to production,
  uses production rake start command
- fix: `better-errors` was installed, but was never being used.
@codecov-commenter
Copy link

Codecov Report

Merging #218 (7050683) into master (b9d85ba) will decrease coverage by 0.17%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #218      +/-   ##
==========================================
- Coverage   84.12%   83.94%   -0.18%     
==========================================
  Files          46       46              
  Lines        1864     1869       +5     
==========================================
+ Hits         1568     1569       +1     
- Misses        296      300       +4     
Impacted Files Coverage Δ
server.rb 89.47% <20.00%> (-10.53%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b9d85ba...7050683. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants