From 0b67e82e63dc10c461cdde26f1a1c90afece97f9 Mon Sep 17 00:00:00 2001 From: keyan Date: Tue, 22 Feb 2022 15:41:13 -0600 Subject: [PATCH] add confighooks --- .platform/confighooks/postdeploy/99_kill_default_nginx.sh | 4 ++++ .platform/confighooks/predeploy/00_build.sh | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100755 .platform/confighooks/postdeploy/99_kill_default_nginx.sh create mode 100755 .platform/confighooks/predeploy/00_build.sh diff --git a/.platform/confighooks/postdeploy/99_kill_default_nginx.sh b/.platform/confighooks/postdeploy/99_kill_default_nginx.sh new file mode 100755 index 00000000..e90fd819 --- /dev/null +++ b/.platform/confighooks/postdeploy/99_kill_default_nginx.sh @@ -0,0 +1,4 @@ +#!/bin/bash -xe +rm -f /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf +service nginx stop +service nginx start \ No newline at end of file diff --git a/.platform/confighooks/predeploy/00_build.sh b/.platform/confighooks/predeploy/00_build.sh new file mode 100755 index 00000000..8ceacc1a --- /dev/null +++ b/.platform/confighooks/predeploy/00_build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +echo primsa migrate +npm run migrate + +echo build with npm +npm run build \ No newline at end of file