Use OnPremises (#631)

This commit is contained in:
Sung 2023-03-04 10:52:35 +11:00 committed by GitHub
commit d52a5bdf48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 40 additions and 30 deletions

View file

@ -22,7 +22,7 @@ mv ./dnote-server /usr/local/bin
```bash
GO_ENV=PRODUCTION \
OnPremise=true \
OnPremises=true \
DBHost=localhost \
DBPort=5432 \
DBName=dnote \
@ -33,7 +33,7 @@ SmtpHost=$SmtpHost \
SmtpPort=$SmtpPort \
SmtpUsername=$SmtpUsername \
SmtpPassword=$SmtpPassword \
DisableRegistration=false
DisableRegistration=false \
dnote-server start
```
@ -129,7 +129,7 @@ RestartSec=3
WorkingDirectory=/home/$user
ExecStart=/usr/local/bin/dnote-server start
Environment=GO_ENV=PRODUCTION
Environment=OnPremise=true
Environment=OnPremises=true
Environment=DBHost=localhost
Environment=DBPort=5432
Environment=DBName=dnote