-
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.
- Loading branch information
Vlad Volkov
committed
May 16, 2023
1 parent
7fdac90
commit 3d3c1fe
Showing
3 changed files
with
15 additions
and
6 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
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,10 @@ | ||
#!/usr/bin/env node | ||
const strapi = require("@strapi/strapi"); | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
|
||
const uploadDir = path.join(process.cwd(), "public", "uploads"); | ||
|
||
fs.existsSync(uploadDir) || fs.mkdirSync(uploadDir, { recursive: true }); | ||
|
||
strapi().start(); |
5 changes: 2 additions & 3 deletions
5
packages/nodejs/process.yml → packages/nodejs/ecosystem.config.yml
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,14 @@ | ||
apps: | ||
- cwd: /usr/local/src | ||
script: node_modules/@strapi/strapi/bin/strapi.js | ||
args: | ||
- start | ||
script: bin/app.js | ||
env: | ||
STRAPI_DISABLE_UPDATE_NOTIFICATION: 'true' | ||
STRAPI_HIDE_STARTUP_MESSAGE: 'true' | ||
STRAPI_TELEMETRY_DISABLED: 'true' | ||
BROWSER: 'false' | ||
watch: false | ||
instances: 1 | ||
source_map_support: true | ||
exec_mode: cluster | ||
name: app | ||
|