-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnode-nestjs.yml
More file actions
26 lines (24 loc) · 874 Bytes
/
node-nestjs.yml
File metadata and controls
26 lines (24 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
features:
- node lts
# - mysql
# - postgresql
# - redis
nginx:
index: index.html
root: public_html/client
passenger:
enabled: 'on'
app_start_command: env PORT=$PORT node dist/main.js
commands:
# ---- Change "yarn" here if needed, it will referred later as $NPM ----
- NPM=`which yarn`
- $NPM install
- nest build
# ---- Choose your database stack (also uncomment related feature above) ----
# - echo "DB_CONNECTION=sqlite:////$HOME/db.sqlite" >> .env
# - echo "DB_CONNECTION=mysql://$USERNAME:$MYPASSWD@localhost/$DATABASE" >> .env
# - echo "DB_CONNECTION=postgresql://$USERNAME:$PGPASSWD@localhost/$DATABASE" >> .env
# - echo -e "REDIS_HOST=localhost\nREDIS_PORT=6479\nREDIS_PASSWORD=${DATABASE}:::${RDPASSWD}" >> .env
# ---- If you use next-auth ----
# - echo AUTH_SECRET=$(openssl rand -base64 33) >> .env
# - echo AUTH_TRUST_HOST=true >> .env