From f36a20736265fe96ff34981f30a3555108defb59 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Tue, 25 Mar 2014 17:05:19 +0100 Subject: [PATCH] use npm-shrinkwrap file to stale dependencies versions --- TODO.org | 2 +- scripts/install | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.org b/TODO.org index 1ce7506..da29ae9 100644 --- a/TODO.org +++ b/TODO.org @@ -41,7 +41,7 @@ admin@yunohost:/home/yunohost.app/ghostblog$ du -sh ghost/* ** modify assets/css ? ** modify default.hbs * TODO go multi-instance ? -* TODO use shrink to fix dependencies version. cf. https://www.npmjs.org/doc/shrinkwrap.html +* DONE use shrink to fix dependencies version. cf. https://www.npmjs.org/doc/shrinkwrap.html * TODO implement upgrade * DONE if public, block access to admin section via sso * DONE support installation on root of subdomain diff --git a/scripts/install b/scripts/install index 226512f..c4a1f30 100644 --- a/scripts/install +++ b/scripts/install @@ -47,6 +47,7 @@ final_path=/var/www/ghostblog sudo mkdir -p $final_path sudo useradd -d $final_path ghostblog sudo cp -r ../tmp/ghost $final_path +sudo cp ../conf/npm-shrinkwrap.json $final_path/ghost sudo chown -R ghostblog: $final_path echo "Install Ghost with NPM..."