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

Commit

Permalink
Making start scripts naming consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
phutchins committed Oct 25, 2017
1 parent 43831f2 commit 1837dc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"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-dev": "NODE_ENV=development nodemon ./bin/storj-billing.js",
"start-prod": "NODE_ENV=production node ./bin/storj-billing.js",
"test": "npm run testsuite"
},
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 1837dc1

Please sign in to comment.