-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb88980
commit a9e3a63
Showing
6 changed files
with
54 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
FROM node:16-alpine | ||
ENV NODE_ENV=production | ||
ENV SENTRY_DSN="https://[email protected]/4504645996576768" | ||
LABEL org.opencontainers.image.source=https://github.com/tdjsnelling/sqtracker | ||
WORKDIR /sqtracker/app | ||
COPY . . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,18 +71,20 @@ import createAdminUser from './setup/createAdminUser' | |
|
||
validateConfig() | ||
|
||
Sentry.init({ | ||
dsn: 'https://[email protected]/4504645996576768', | ||
tracesSampleRate: 1.0, | ||
environment: | ||
process.env.NODE_ENV === 'production' ? 'production' : 'development', | ||
}) | ||
if (process.env.SENTRY_DSN) { | ||
Sentry.init({ | ||
dsn: process.env.SENTRY_DSN, | ||
tracesSampleRate: 1.0, | ||
environment: | ||
process.env.NODE_ENV === 'production' ? 'production' : 'development', | ||
}) | ||
|
||
Sentry.setContext('deployment', { | ||
name: process.env.SQ_SITE_NAME, | ||
url: process.env.SQ_BASE_URL, | ||
adminEmail: process.env.SQ_ADMIN_EMAIL, | ||
}) | ||
Sentry.setContext('deployment', { | ||
name: process.env.SQ_SITE_NAME, | ||
url: process.env.SQ_BASE_URL, | ||
adminEmail: process.env.SQ_ADMIN_EMAIL, | ||
}) | ||
} | ||
|
||
const connectToDb = () => { | ||
console.log('[sq] initiating db connection...') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ RUN ./node_modules/.bin/next build | |
|
||
FROM node:16-alpine | ||
ENV NODE_ENV=production | ||
ENV SENTRY_DSN="https://[email protected]/4504646040616960" | ||
LABEL org.opencontainers.image.source=https://github.com/tdjsnelling/sqtracker | ||
WORKDIR /sqtracker/client | ||
COPY --from=builder /sqtracker/node_modules ./node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import * as Sentry from '@sentry/nextjs' | ||
import config from '../config' | ||
|
||
Sentry.init({ | ||
dsn: 'https://[email protected]/4504646040616960', | ||
tracesSampleRate: 1.0, | ||
environment: | ||
process.env.NODE_ENV === 'production' ? 'production' : 'development', | ||
}) | ||
if (process.env.SENTRY_DSN) { | ||
Sentry.init({ | ||
dsn: process.env.SENTRY_DSN, | ||
tracesSampleRate: 1.0, | ||
environment: | ||
process.env.NODE_ENV === 'production' ? 'production' : 'development', | ||
}) | ||
|
||
Sentry.setContext('deployment', { | ||
name: config.envs.SQ_SITE_NAME, | ||
url: config.envs.SQ_BASE_URL, | ||
adminEmail: config.secrets.SQ_ADMIN_EMAIL, | ||
}) | ||
Sentry.setContext('deployment', { | ||
name: config.envs.SQ_SITE_NAME, | ||
url: config.envs.SQ_BASE_URL, | ||
adminEmail: config.secrets.SQ_ADMIN_EMAIL, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import * as Sentry from '@sentry/nextjs' | ||
import config from '../config' | ||
|
||
Sentry.init({ | ||
dsn: 'https://[email protected]/4504646040616960', | ||
tracesSampleRate: 1.0, | ||
environment: | ||
process.env.NODE_ENV === 'production' ? 'production' : 'development', | ||
}) | ||
if (process.env.SENTRY_DSN) { | ||
Sentry.init({ | ||
dsn: process.env.SENTRY_DSN, | ||
tracesSampleRate: 1.0, | ||
environment: | ||
process.env.NODE_ENV === 'production' ? 'production' : 'development', | ||
}) | ||
|
||
Sentry.setContext('deployment', { | ||
name: config.envs.SQ_SITE_NAME, | ||
url: config.envs.SQ_BASE_URL, | ||
adminEmail: config.secrets.SQ_ADMIN_EMAIL, | ||
}) | ||
Sentry.setContext('deployment', { | ||
name: config.envs.SQ_SITE_NAME, | ||
url: config.envs.SQ_BASE_URL, | ||
adminEmail: config.secrets.SQ_ADMIN_EMAIL, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import * as Sentry from '@sentry/nextjs' | ||
import config from '../config' | ||
|
||
Sentry.init({ | ||
dsn: 'https://[email protected]/4504646040616960', | ||
tracesSampleRate: 1.0, | ||
environment: | ||
process.env.NODE_ENV === 'production' ? 'production' : 'development', | ||
}) | ||
if (process.env.SENTRY_DSN) { | ||
Sentry.init({ | ||
dsn: process.env.SENTRY_DSN, | ||
tracesSampleRate: 1.0, | ||
environment: | ||
process.env.NODE_ENV === 'production' ? 'production' : 'development', | ||
}) | ||
|
||
Sentry.setContext('deployment', { | ||
name: config.envs.SQ_SITE_NAME, | ||
url: config.envs.SQ_BASE_URL, | ||
adminEmail: config.secrets.SQ_ADMIN_EMAIL, | ||
}) | ||
Sentry.setContext('deployment', { | ||
name: config.envs.SQ_SITE_NAME, | ||
url: config.envs.SQ_BASE_URL, | ||
adminEmail: config.secrets.SQ_ADMIN_EMAIL, | ||
}) | ||
} |