Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (17 sloc) 454 Bytes
#!/bin/sh
BINURL="http://download.opalang.org/linux/opa_1.0.5+build2988_amd64.release.run"
VERSION="1.0.5"
# Installing OPA, first push only
if [ ! -d ~/opa ] ; then
mkdir ~/opa
wget $BINURL -O install
sh install -- ~/opa
# Install node dependencies
(cd ~ && npm install mongodb formidable nodemailer imap)
fi
# Runscript
cp run ~/
# Install the code
cp app.opa ~/
# Compiling the OPA app
cd ~ && ./opa/bin/opa app.opa -o app.js