Fixed install and update functions (#6806)
This commit is contained in:
parent
047c7fe53c
commit
5b81fc1aaa
@ -42,11 +42,12 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating ${APP} to ${RELEASE}"
|
msg_info "Updating ${APP} to ${RELEASE}"
|
||||||
cd /opt/outline
|
cd /opt/outline
|
||||||
|
mv /opt/.env /opt/outline
|
||||||
export NODE_ENV=development
|
export NODE_ENV=development
|
||||||
export NODE_OPTIONS="--max-old-space-size=3584"
|
export NODE_OPTIONS="--max-old-space-size=3584"
|
||||||
$STD yarn install --frozen-lockfile
|
$STD yarn install --frozen-lockfile
|
||||||
|
export NODE_ENV=production
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
mv /opt/.env /opt/outline
|
|
||||||
msg_ok "Updated ${APP}"
|
msg_ok "Updated ${APP}"
|
||||||
|
|
||||||
msg_info "Starting Services"
|
msg_info "Starting Services"
|
||||||
|
@ -54,11 +54,11 @@ sed -i "s/user:pass@postgres/${DB_USER}:${DB_PASS}@localhost/g" /opt/outline/.en
|
|||||||
sed -i 's/redis:6379/localhost:6379/g' /opt/outline/.env
|
sed -i 's/redis:6379/localhost:6379/g' /opt/outline/.env
|
||||||
sed -i "5s#URL=#URL=http://${LOCAL_IP}#g" /opt/outline/.env
|
sed -i "5s#URL=#URL=http://${LOCAL_IP}#g" /opt/outline/.env
|
||||||
sed -i 's/FORCE_HTTPS=true/FORCE_HTTPS=false/g' /opt/outline/.env
|
sed -i 's/FORCE_HTTPS=true/FORCE_HTTPS=false/g' /opt/outline/.env
|
||||||
$STD yarn install --frozen-lockfile
|
|
||||||
export NODE_OPTIONS="--max-old-space-size=3584"
|
export NODE_OPTIONS="--max-old-space-size=3584"
|
||||||
$STD yarn build
|
$STD yarn install --frozen-lockfile
|
||||||
sed -i 's/NODE_ENV=development/NODE_ENV=production/g' /opt/outline/.env
|
|
||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
|
sed -i 's/NODE_ENV=development/NODE_ENV=production/g' /opt/outline/.env
|
||||||
|
$STD yarn build
|
||||||
msg_ok "Configured Outline"
|
msg_ok "Configured Outline"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user