Skip to content

Commit

Permalink
Merge pull request #40 from victorpre/assets/prod
Browse files Browse the repository at this point in the history
🎨 Assets compile in production
  • Loading branch information
victorpre authored Mar 28, 2018
2 parents 769c1ab + 6915e74 commit 366e9b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .deliver/config
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ pre_erlang_clean_compile() {
# echo \$PATH # check if rbenv is in the path
set -e # fail if any command fails (recommended)
# Building assets is unnecessary
# cd '$BUILD_AT' # enter the build directory on the build host (required)
cd '$BUILD_AT' # enter the build directory on the build host (required)
# prepare something
# mkdir -p priv/static # required by the phoenix.digest task
# npm install
mkdir -p priv/static # required by the phoenix.digest task

# ./node_modules/brunch/bin/brunch build --production
cd '$BUILD_AT/apps/bot/assets/' # enter the build directory on the build host (required)

(npm install && ./node_modules/brunch/bin/brunch build --production)

# run your custom task
# APP='$APP' MIX_ENV='$TARGET_MIX_ENV' $MIX_CMD phoenix.digest $SILENCE
APP='$APP' MIX_ENV='$TARGET_MIX_ENV' $MIX_CMD phx.digest $SILENCE
"
}
2 changes: 1 addition & 1 deletion rel/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ end
# will be used by default

release :erlich do
set version: "0.2.0"
set version: "0.5.0"
set applications: [
:runtime_tools,
:edeliver,
Expand Down

0 comments on commit 366e9b6

Please sign in to comment.