Update manyfold-install.sh

This commit is contained in:
Bas van den Berg 2025-03-23 20:36:54 +01:00 committed by GitHub
parent 15768ab8c2
commit f62c986922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,8 +105,8 @@ HTTPS_ONLY=false
RAILS_ENV=production RAILS_ENV=production
EOF EOF
chown manyfold:manyfold /opt/.env chown manyfold:manyfold /opt/.env
source /opt/.env && bin/rails db:migrate $STD source /opt/.env && bin/rails db:migrate
source /opt/.env && bin/rails assets:precompile $STD source /opt/.env && bin/rails assets:precompile
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Installed manyfold" msg_ok "Installed manyfold"
@ -118,8 +118,8 @@ Requires=network.target
[Service] [Service]
Type=simple Type=simple
User=manyfold User=root
Group=manyfold Group=root
WorkingDirectory=/opt/manyfold WorkingDirectory=/opt/manyfold
EnvironmentFile=/opt/.env EnvironmentFile=/opt/.env
ExecStart=/usr/bin/bash -lc '/opt/manyfold/bin/rails server -b 127.0.0.1 --port 5000 --environment production' ExecStart=/usr/bin/bash -lc '/opt/manyfold/bin/rails server -b 127.0.0.1 --port 5000 --environment production'