Skip to content
Snippets Groups Projects
Commit d02236c1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Install any missing node packages

parent 34f9eb9a
No related branches found
No related tags found
No related merge requests found
...@@ -239,6 +239,23 @@ function restore_local_ghost { ...@@ -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 { ...@@ -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/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment