mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Fix
This commit is contained in:
parent
af6bcfd51b
commit
57b8f40705
4 changed files with 6 additions and 10 deletions
|
@ -32,7 +32,8 @@ processManagement:
|
||||||
|
|
||||||
#operationProfiling:
|
#operationProfiling:
|
||||||
|
|
||||||
replSetName: rs01
|
replication:
|
||||||
|
replSetName: "rs01"
|
||||||
|
|
||||||
#sharding:
|
#sharding:
|
||||||
|
|
||||||
|
|
|
@ -8,12 +8,10 @@ WorkingDirectory=__FINALPATH__
|
||||||
Environment="PATH=__ENV_PATH__"
|
Environment="PATH=__ENV_PATH__"
|
||||||
Environment="NODE_ENV=production"
|
Environment="NODE_ENV=production"
|
||||||
ExecStart=__YNH_NODE__ __FINALPATH__/main.js
|
ExecStart=__YNH_NODE__ __FINALPATH__/main.js
|
||||||
|
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
StandardError=syslog
|
StandardError=syslog
|
||||||
SyslogIdentifier=rocketchat
|
SyslogIdentifier=__APP__
|
||||||
|
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://__DOMAIN__:__PORT__ PORT=__PORT__
|
||||||
Environment=MONGO_URL=mongodb://127.0.0.1:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local?replicaSet=rs01 ROOT_URL=http://__DOMAIN__:__PORT__ PORT=__PORT__
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# dependencies used by the app
|
|
||||||
#pkg_dependencies="apt-transport-https build-essential gzip curl graphicsmagick" dirmngr
|
|
||||||
|
|
||||||
nodejs_version=12
|
nodejs_version=12
|
||||||
|
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
|
|
|
@ -125,8 +125,8 @@ pushd $final_path/programs/server
|
||||||
npm install -g inherits n
|
npm install -g inherits n
|
||||||
ynh_exec_as $app env $ynh_node_load_PATH npm install
|
ynh_exec_as $app env $ynh_node_load_PATH npm install
|
||||||
|
|
||||||
export MONGO_URL='mongodb://$db_user:$db_pwdd@host:27017/$db_name'
|
#export MONGO_URL='mongodb://$db_user:$db_pwdd@host:27017/$db_name'
|
||||||
export ROOT_URL='http://$domain'
|
#export ROOT_URL='http://$domain'
|
||||||
#export MAIL_URL='smtp://user:password@mailhost:port/'
|
#export MAIL_URL='smtp://user:password@mailhost:port/'
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue