Properly delete the coffee-script source files.

This commit is contained in:
Pagan Gazzard 2014-08-07 21:20:49 +01:00 committed by Pablo Carranza Vélez
parent 51bfb69354
commit e3188065d7

View File

@ -1,5 +1,9 @@
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
# 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