From 21d7fda912ccda92f5f3ec8483c03c321da71119 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 26 Mar 2020 13:25:22 -0400 Subject: [PATCH] fix assets install line --- post-receive | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/post-receive b/post-receive index 0eb8e2f5..4074b8f8 100755 --- a/post-receive +++ b/post-receive @@ -30,7 +30,7 @@ fi # Compile assets if git diff --name-only $oldrev $newrev | grep "^assets/"; then echo "Compiling assets" - npm install || die "assets install failed" + npm install --prefix ./assets || die "assets install failed" npm run deploy --prefix ./assets mix phx.digest || die "assets compile failed" fi @@ -46,4 +46,3 @@ echo "Building release" mix distillery.release --quiet || die "failed to generate release" _build/prod/rel/philomena/bin/philomena reboot || die "failed to upgrade app; log in to the server and restart the app manually" -