Update build script
This commit is contained in:
parent
d54a624e6c
commit
d55ac5332d
2 changed files with 6 additions and 6 deletions
2
run
2
run
|
@ -12,7 +12,7 @@ PATH="${PATH}:./vendor/bin"
|
|||
function generate {
|
||||
local args=()
|
||||
|
||||
if [[ "${APP_ENV:-}" == "production" ]]; then
|
||||
if [[ "${APP_ENV:-}" == "prod" ]]; then
|
||||
args=(--env="prod")
|
||||
else
|
||||
args=(--server --watch)
|
||||
|
|
10
run.local
10
run.local
|
@ -65,15 +65,15 @@ function npm:build:css {
|
|||
}
|
||||
|
||||
function publish {
|
||||
export NODE_ENV=production
|
||||
export APP_ENV=production
|
||||
|
||||
tag-release
|
||||
git push
|
||||
tag-release
|
||||
git push --tags
|
||||
|
||||
git stash
|
||||
|
||||
clean
|
||||
|
||||
export APP_ENV=prod
|
||||
export NODE_ENV=production
|
||||
(cd assets && npm:build:css)
|
||||
generate
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue