mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 21:57:54 +00:00
10 lines
286 B
Bash
Executable File
10 lines
286 B
Bash
Executable File
if [ $NODE_ENV == 'production' ]; then
|
|
node ./node_modules/coffee-script/bin/coffee -c ./src
|
|
# We don't need coffee-script at runtime
|
|
npm uninstall coffee-script
|
|
# Remove deploy key
|
|
rm -rf /root/.ssh/* deploy_key
|
|
# Remove unnecessary source files
|
|
rm -rf Makefile src/*.coffee
|
|
fi
|