Update manyfold-install.sh
This commit is contained in:
parent
15768ab8c2
commit
f62c986922
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user