Skip to content

Commit

Permalink
Clean deliver config
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Gorin committed Apr 4, 2018
1 parent bcb81db commit 4e6fef3
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .deliver/config
Expand Up @@ -33,38 +33,23 @@ pre_erlang_clean_compile() {
# runs the commands on the build host
[ -f ~/.profile ] && source ~/.profile # load profile (optional)

# fail if any command fails (recommended)
# fail if any command fails
set -e

# enter the build directory on the build host (required)
cd '$BUILD_AT'

mkdir -p priv/static # required by the phoenix.digest task

cd assets
npm install

# work-around for Brunch running babel plugin before elmBrunch
cd assets/elm
# elm-make --yes --output ../vendor/elm/game.js Game.elm
# elm-make --yes --output ../vendor/elm/gamelist.js GameList.elm
# elm-make --yes --output ../vendor/elm/gamesettings.js GameSettings.elm
cd ..

# installing npm dependencies, smart way
# if [[ -d ../node_modules ]]; then
# ln -s ../node_modules .
# npm install
# else
# npm install
# mv node_modules ..
# ln -s ../node_modules .
# fi

# building brunch
brunch build --production

# MIX_ENV=prod mix phoenix.digest
cd ..

# MIX_ENV=prod mix phoenix.digest
APP='$APP' MIX_ENV='$TARGET_MIX_ENV' $MIX_CMD phoenix.digest $SILENCE
"
}

0 comments on commit 4e6fef3

Please sign in to comment.