Skip to content

Instantly share code, notes, and snippets.

@daisuke-morita
Created February 7, 2016 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daisuke-morita/01f7008b50892a19cc03 to your computer and use it in GitHub Desktop.
Save daisuke-morita/01f7008b50892a19cc03 to your computer and use it in GitHub Desktop.
build-release.sh - リリースパッケージをビルドする
#!/bin/bash
set -ex
mix do deps.get, deps.compile, compile
node -v
npm install
export MIX_ENV="prod"
mkdir -p priv/static
node node_modules/brunch/bin/brunch build
mix do phoenix.digest, compile, release --verbosity=verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment