Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #89 from Storj/makeStartScriptsConsistent
Browse files Browse the repository at this point in the history
Making start scripts naming consistent
  • Loading branch information
phutchins committed Oct 25, 2017
2 parents 43831f2 + 74dc5df commit 7d0c14b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"testsuite": "STORJ_ALLOW_LOOPBACK=1 NODE_ENV=test ./node_modules/.bin/_mocha --recursive test/**",
"coverage": "STORJ_ALLOW_LOOPBACK=1 NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --recursive",
"linter": "./node_modules/.bin/eslint ./index.js ./lib ./test",
"dev": "NODE_ENV=development nodemon ./bin/storj-billing.js",
"start-prod": "NODE_ENV=production node ./bin/storj-billing.js",
"start": "if [[ ${NODE_ENV} == \"development\" ]]; then npm run start:dev; else npm run start:prod; fi",
"start:dev": "NODE_ENV=development nodemon ./bin/storj-billing.js",
"start:prod": "NODE_ENV=production node ./bin/storj-billing.js",
"test": "npm run testsuite"
},
"repository": {
Expand Down
10 changes: 6 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ cd /opt/app

for dir in /usr/src/vendor/* ; do
if [[ -d $dir ]]; then
echo "Manually linking $dir"
dir_name=$(basename $dir)
rm -rf /opt/app/node_modules/$dir_name
cp -rp $dir /opt/app/node_modules/$dir_name
if [ "$(ls -A $dir)" ]; then
echo "Manually linking $dir"
dir_name=$(basename $dir)
rm -rf /opt/app/node_modules/$dir_name
cp -rp $dir /opt/app/node_modules/$dir_name
fi
fi

echo "Rebuilding linked modules"
Expand Down

0 comments on commit 7d0c14b

Please sign in to comment.