-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed more build things - added a precheck to check env and migration…
…s. renamed pm2.json to ecosystem.config.js
- Loading branch information
Showing
65 changed files
with
1,075 additions
and
196 deletions.
There are no files selected for viewing
Binary file added
BIN
+3.18 KB
.yarn/cache/@sindresorhus-chunkify-npm-0.2.0-abd3dba6c5-a17d8a385f.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+335 KB
...node-npm-18.6.4-8be642300e-fc453dd2b5.zip → ...node-npm-18.6.5-440ef423eb-e3e66c9a84.zip
Binary file not shown.
Binary file renamed
BIN
+33.9 KB
...act-npm-18.0.16-accf7e7d08-47853419ad.zip → ...act-npm-18.0.17-c4860cbae4-18cae64f5b.zip
Binary file not shown.
Binary file renamed
BIN
+708 KB
...ugin-npm-5.32.0-ee55ee9a1b-9785c34d97.zip → ...ugin-npm-5.33.0-d894e94623-d408f3f474.zip
Binary file not shown.
Binary file renamed
BIN
+12.9 KB
...rser-npm-5.32.0-6310db2532-3fcfa183ca.zip → ...rser-npm-5.33.0-6cb105fd35-2617aba987.zip
Binary file not shown.
Binary file renamed
BIN
+302 KB
...ager-npm-5.32.0-e6d54b6539-69bdeb029f.zip → ...ager-npm-5.33.0-0e00949895-b2cbea9abd.zip
Binary file not shown.
Binary file renamed
BIN
+42.2 KB
...tils-npm-5.32.0-a891a4a707-4063808ca0.zip → ...tils-npm-5.33.0-8084fb807d-a1d1ffb42f.zip
Binary file not shown.
Binary file renamed
BIN
+28.9 KB
...ypes-npm-5.32.0-0ce937d325-6758f54d8d.zip → ...ypes-npm-5.33.0-1a64433062-8bbddda84c.zip
Binary file not shown.
Binary file renamed
BIN
+128 KB
...tree-npm-5.32.0-16d017bce9-6aee08be5d.zip → ...tree-npm-5.33.0-fe84f49467-26f9005cdf.zip
Binary file not shown.
Binary file renamed
BIN
+120 KB
...tils-npm-5.32.0-e6be7becb3-cfd88d9350.zip → ...tils-npm-5.33.0-91bf6d8b3f-6ce5ee5eab.zip
Binary file not shown.
Binary file renamed
BIN
+9.23 KB
...keys-npm-5.32.0-3c9eaed1d3-1f9b756d64.zip → ...keys-npm-5.33.0-97dfab0f1f-d7e3653de6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
apps: [ | ||
{ | ||
name: "sycpiano", | ||
script: "yarn", | ||
args: "start", | ||
env: { | ||
NODE_ENV: "production", | ||
}, | ||
log_date_format: "YYYY-MM-DD HH:mm Z" | ||
} | ||
] | ||
} |
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import * as dotenv from 'dotenv'; | ||
import { umzug } from './migrate'; | ||
|
||
dotenv.config(); | ||
|
||
const required = [ | ||
'PORT', | ||
'ADMIN_PORT', | ||
'HOST', | ||
'GAPI_KEY_SERVER', | ||
'STRIPE_SECRET_KEY', | ||
'STRIPE_WEBHOOK_KEY', | ||
'COOKIE_SECRET', | ||
'PRODUCTS_DIR', | ||
'IMAGE_ASSETS_DIR', | ||
'MUSIC_ASSETS_DIR', | ||
'DKIM_PRIVATE_KEY_FILE', | ||
'SMTP_HOST', | ||
'SMTP_PORT', | ||
'SMTP_USERNAME', | ||
'SMTP_PASSWORD' | ||
] | ||
|
||
export const precheck = async () => { | ||
// Check DB stuff | ||
if (!process.env.DB_URL) { | ||
const dbRequired = ['DB_USER', 'DB_PASS']; | ||
dbRequired.forEach((key) => { | ||
const value = process.env[key]; | ||
if (!value) { | ||
throw Error(`${key} is not defined, nor DB_URL`); | ||
} | ||
}); | ||
} | ||
required.forEach((key) => { | ||
const value = process.env[key]; | ||
if (!value) { | ||
throw Error(`${key} is not defined.`); | ||
} | ||
}); | ||
|
||
// run migrations! | ||
await umzug.up(); | ||
}; |
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
Oops, something went wrong.