mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 13:47:54 +00:00
Add production mode guards.
This commit is contained in:
parent
3bad30eff7
commit
0495053fd5
12
deps.sh
12
deps.sh
@ -1,8 +1,10 @@
|
||||
# Deploy key for private npm modules
|
||||
mkdir -p /root/.ssh
|
||||
cp deploy_key /root/.ssh/id_rsa
|
||||
chmod 400 /root/.ssh/id_rsa
|
||||
cp ssh_config /root/.ssh/config
|
||||
if [ $NODE_ENV == 'production' ]; then
|
||||
# Deploy key for private npm modules
|
||||
mkdir -p /root/.ssh
|
||||
cp deploy_key /root/.ssh/id_rsa
|
||||
chmod 400 /root/.ssh/id_rsa
|
||||
cp ssh_config /root/.ssh/config
|
||||
fi
|
||||
|
||||
# System dependencies
|
||||
apt-get -q update
|
||||
|
@ -1,3 +1,5 @@
|
||||
node ./node_modules/coffee-script/bin/coffee -c ./src
|
||||
rm -rf /root/.ssh/* /build/app/deploy_key /app/deploy_key /build/app/Makefile /app/Makefile /app/src/*.coffee
|
||||
npm uninstall coffee-script
|
||||
if [ $NODE_ENV == 'production' ]; then
|
||||
node ./node_modules/coffee-script/bin/coffee -c ./src
|
||||
rm -rf /root/.ssh/* /build/app/deploy_key /app/deploy_key /build/app/Makefile /app/Makefile /app/src/*.coffee
|
||||
npm uninstall coffee-script
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user