-
Notifications
You must be signed in to change notification settings - Fork 162
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
refactor deployment #730
refactor deployment #730
Conversation
ryanwoldatwork
commented
Jan 5, 2024
- use circle ci to run tests, install npm, and push the built project
* don't overwrite config.js * refactor jobs * .cfignore - don't push these files to cloud foundry
* rm todo.txt
* the app is built in CI, then deployed
* per newrelic logging: the newrelic module must be the first module required
* winston isn't loaded yet
@@ -1,6 +1,6 @@ | |||
version: 2.1 | |||
jobs: | |||
develop_deploy: | |||
run_tests: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
runs tests for every build
@@ -26,11 +26,23 @@ jobs: | |||
name: run tests | |||
command: npm test | |||
|
|||
|
|||
develop_deploy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separate deploys for develop, staging, and production.
the repeated steps can be DRY'd up later
# name: run tests | ||
# command: npm test | ||
|
||
- run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also not cp'ing cloudgov configs, to overwrite
@@ -2,20 +2,19 @@ if (process.env.NODE_ENV !== 'production') { | |||
require('dotenv').config() | |||
} | |||
|
|||
if (process.env.NEW_RELIC_APP_NAME) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loading new relic before winston, because 1. winston was having issues and 2. new relic's agent was complaining about not being loaded first (not being loaded before winston)
* many .env files live in /deploy/envs/