-
Notifications
You must be signed in to change notification settings - Fork 0
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
69e9f78
commit e936b54
Showing
9 changed files
with
201 additions
and
114 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
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,7 @@ | ||
import { execSync } from 'child_process'; | ||
const copyTemplatesFiles = (from, dest) => | ||
{ | ||
execSync(`cp -r ${from} ${dest}`); | ||
}; | ||
|
||
export default copyTemplatesFiles; |
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
100 changes: 0 additions & 100 deletions
100
lib/createProject/templates/rootFiles/docker-compose.yml
This file was deleted.
Oops, something went wrong.
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,73 @@ | ||
import { cleanEnv, str, port, bool, num, url } from 'envalid'; | ||
|
||
export function validateEnv() | ||
{ | ||
return cleanEnv(process.env, { | ||
NODE_ENV: str({ default: 'development' }), | ||
|
||
APP_DEFAULT: str(), | ||
APP_PATH: str(), | ||
APP_PORT: port(), | ||
APP_SET_APP_PROXY: bool(), | ||
APP_SET_COOKIE_SECURE: bool(), | ||
APP_SET_COOKIE_SAME_SITE: str(), | ||
APP_CORS: str(), | ||
|
||
AUTH_API_KEY: str(), | ||
AUTH_HOST: str(), | ||
AUTH_SECRET: str(), | ||
AUTH_AUTHORIZATION: bool(), | ||
|
||
CACHE_HOST: str({ default: 'redis' }), | ||
CACHE_PORT: port({ default: 6379 }), | ||
CACHE_USER: str({ default: 'experience' }), | ||
CACHE_PASSWORD: str({ default: '12345678' }), | ||
CACHE_ENABLE: bool({ default: false }), | ||
|
||
{{#ifEquals orm "Mongoose" }} | ||
DB_URI: str(), | ||
{{/ifEquals}} | ||
{{#ifEquals orm "MikroORM" }} | ||
DB_HOST: str(), | ||
DB_USER: str(), | ||
DB_DATABASE: str(), | ||
DB_PASSWORD: str(), | ||
DB_PORT: str(), | ||
DB_TYPE: str(), | ||
{{/ifEquals}} | ||
|
||
DB_ORM_DEFAULT: str(), | ||
|
||
MINIO_HOST: str(), | ||
MINIO_ACCESS_KEY: str(), | ||
MINIO_SECRET_KEY: str(), | ||
MINIO_USE_SSL: bool(), | ||
MINIO_PORT: port(), | ||
MINIO_PUBLIC_BUCKET: str(), | ||
MINIO_PRIVATE_BUCKET: str(), | ||
MINIO_REGION: str(), | ||
FILESYSTEM_DEFAULT: str(), | ||
|
||
TZ: str(), | ||
|
||
JWT_SECRET: str(), | ||
JWT_EXPIRES: num(), | ||
JWT_ISS: str(), | ||
JWT_AUD: str(), | ||
|
||
SMTP_HOST: str(), | ||
SMTP_PORT: num(), | ||
SMTP_SECURE_SSL: bool(), | ||
SMTP_SENDER_NAME: str(), | ||
SMTP_SENDER_EMAIL_DEFAULT: str(), | ||
|
||
URL_API: url(), | ||
URL_WEB: url(), | ||
|
||
PRODUCT_NAME: str(), | ||
ENCRYPTION_DEFAULT: str(), | ||
PUSH_PRIVATE_KEY: str(), | ||
PUSH_PUBLIC_KEY: str(), | ||
EXECUTE_CRONS: bool() | ||
}); | ||
} |
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.