Update manyfold-install.sh
This commit is contained in:
parent
4c3f2f0c0a
commit
5fa42600af
@ -93,27 +93,28 @@ $STD corepack prepare $YARN_VERSION --activate
|
|||||||
$STD corepack use $YARN_VERSION
|
$STD corepack use $YARN_VERSION
|
||||||
$STD yarn install
|
$STD yarn install
|
||||||
cat <<EOF >/opt/.env
|
cat <<EOF >/opt/.env
|
||||||
APP_VERSION=${RELEASE}
|
export APP_VERSION=${RELEASE}
|
||||||
GUID=1002
|
export GUID=1002
|
||||||
PUID=1001
|
export PUID=1001
|
||||||
PUBLIC_HOSTNAME=subdomain.somehost.org
|
export PUBLIC_HOSTNAME=subdomain.somehost.org
|
||||||
PUBLIC_PORT=5000
|
export PUBLIC_PORT=5000
|
||||||
SECRET_KEY_BASE=$(bundle exec rails secret)
|
export SECRET_KEY_BASE=$(bundle exec rails secret)
|
||||||
REDIS_URL=redis://127.0.0.1:6379/1
|
export REDIS_URL=redis://127.0.0.1:6379/1
|
||||||
DATABASE_ADAPTER=postgresql
|
export DATABASE_ADAPTER=postgresql
|
||||||
DATABASE_HOST=127.0.0.1
|
export DATABASE_HOST=127.0.0.1
|
||||||
DATABASE_USER=${DB_USER}
|
export DATABASE_USER=${DB_USER}
|
||||||
DATABASE_PASSWORD=${DB_PASS}
|
export DATABASE_PASSWORD=${DB_PASS}
|
||||||
DATABASE_NAME=${DB_NAME}
|
export DATABASE_NAME=${DB_NAME}
|
||||||
DATABASE_CONNECTION_POOL=16
|
export DATABASE_CONNECTION_POOL=16
|
||||||
MULTIUSER=enabled
|
export MULTIUSER=enabled
|
||||||
HTTPS_ONLY=false
|
export HTTPS_ONLY=false
|
||||||
RAILS_ENV=production
|
export RAILS_ENV=production
|
||||||
EOF
|
EOF
|
||||||
chown manyfold:manyfold /opt/.env
|
chown manyfold:manyfold /opt/.env
|
||||||
$STD source /opt/.env && bin/rails credentials:edit
|
source /opt/.env
|
||||||
$STD source /opt/.env && bin/rails db:migrate
|
$STD bin/rails credentials:edit
|
||||||
$STD source /opt/.env && bin/rails assets:precompile
|
$STD bin/rails db:migrate
|
||||||
|
$STD bin/rails assets:precompile
|
||||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||||
msg_ok "Installed manyfold"
|
msg_ok "Installed manyfold"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user