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

refactor deployment #730

Merged
merged 16 commits into from
Jan 5, 2024
Merged

refactor deployment #730

merged 16 commits into from
Jan 5, 2024

Conversation

ryanwoldatwork
Copy link
Contributor

  • use circle ci to run tests, install npm, and push the built project

ryanwoldatwork and others added 12 commits January 4, 2024 14:59
* don't overwrite config.js
* refactor jobs
* .cfignore - don't push these files to cloud foundry
* 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:
Copy link
Contributor Author

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:
Copy link
Contributor Author

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:
Copy link
Contributor Author

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) {
Copy link
Contributor Author

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)

@ryanwoldatwork ryanwoldatwork merged commit 87bdf18 into stage Jan 5, 2024
4 checks passed
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.

2 participants