Install any missing node packages

This commit is contained in:
Bob Mottram 2017-07-01 15:23:23 +01:00
parent 34f9eb9aff
commit d02236c1eb
1 changed files with 34 additions and 0 deletions

View File

@ -239,6 +239,23 @@ function restore_local_ghost {
sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config
MARIADB_PASSWORD= MARIADB_PASSWORD=
# install any missing packages
if [ ! -d /var/www/${GHOST_DOMAIN_NAME}/htdocs/node_modules/intl ]; then
cd /var/www/${GHOST_DOMAIN_NAME}/htdocs
npm install passport-http-bearer@1.0.1
npm install amperize@0.3.4
npm install bcryptjs@2.4.3
npm install knex@0.12.9
npm install bookshelf@0.10.2
npm install cookie-session@1.2.0
npm install ghost-gql@0.0.6
npm install intl@1.2.5
npm install sanitize-html@1.14.1
npm install showdown-ghost@0.3.6
npm install superagent@3.5.2
npm install mysql@2.1.1
fi
systemctl start ghost systemctl start ghost
restart_site restart_site
fi fi
@ -285,6 +302,23 @@ function restore_remote_ghost {
sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config
MARIADB_PASSWORD= MARIADB_PASSWORD=
# install any missing packages
if [ ! -d /var/www/${GHOST_DOMAIN_NAME}/htdocs/node_modules/intl ]; then
cd /var/www/${GHOST_DOMAIN_NAME}/htdocs
npm install passport-http-bearer@1.0.1
npm install amperize@0.3.4
npm install bcryptjs@2.4.3
npm install knex@0.12.9
npm install bookshelf@0.10.2
npm install cookie-session@1.2.0
npm install ghost-gql@0.0.6
npm install intl@1.2.5
npm install sanitize-html@1.14.1
npm install showdown-ghost@0.3.6
npm install superagent@3.5.2
npm install mysql@2.1.1
fi
systemctl start ghost systemctl start ghost
restart_site restart_site
chown -R ghost: /var/www/$GHOST_DOMAIN_NAME/htdocs/ chown -R ghost: /var/www/$GHOST_DOMAIN_NAME/htdocs/