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
123db323d9
commit
9f7601a5de
2 changed files with 6 additions and 12 deletions
|
@ -1,19 +1,19 @@
|
|||
[Unit]
|
||||
Description=The Rocket.Chat server
|
||||
After=network.target remote-fs.target nss-lookup.target nginx.target mongod.target
|
||||
After=network.target remote-fs.target nss-lookup.target nginx.service mongod.service
|
||||
|
||||
[Service]
|
||||
User=__APP__
|
||||
WorkingDirectory=__FINALPATH__
|
||||
Environment="PATH=__ENV_PATH__"
|
||||
Environment="NODE_ENV=production"
|
||||
ExecStart=__YNH_NODE__ main.js
|
||||
ExecStart=__YNH_NODE__ __FINALPATH__main.js
|
||||
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=rocketchat
|
||||
|
||||
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://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://localhost:__PORT__/ PORT=__PORT__
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -120,15 +120,9 @@ ynh_add_nginx_config
|
|||
#==============================================
|
||||
ynh_script_progression --message="Building $app... (this will take some time and resources!)" --weight=240
|
||||
|
||||
pushd "$final_path" || ynh_die
|
||||
curl https://install.meteor.com/ | sh
|
||||
sudo -u $app meteor ynh_npm install
|
||||
sudo -u $app meteor ynh_npm run postinstall
|
||||
sudo -u $app meteor add rocketchat:lib
|
||||
sudo -u $app meteor build --server-only --directory $final_path
|
||||
cd $final_path/bundle/programs/server
|
||||
pushd "$final_path"
|
||||
ynh_npm install
|
||||
popd || ynh_die
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
Loading…
Add table
Reference in a new issue