From 701d1aa6072b919f550321154d085a74fc315ee4 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Mon, 25 Jan 2021 19:20:53 -0500 Subject: [PATCH] test --- ops/apache2/vhost.conf | 2 ++ scripts/installnode.sh | 3 +++ scripts/staging/deploy.sh | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 scripts/installnode.sh diff --git a/ops/apache2/vhost.conf b/ops/apache2/vhost.conf index 70818d8..8e3a76a 100644 --- a/ops/apache2/vhost.conf +++ b/ops/apache2/vhost.conf @@ -9,7 +9,9 @@ DocumentRoot "{{workingPath}}/frontend" + + Require all granted RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] diff --git a/scripts/installnode.sh b/scripts/installnode.sh new file mode 100644 index 0000000..df39468 --- /dev/null +++ b/scripts/installnode.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +apt install node npm diff --git a/scripts/staging/deploy.sh b/scripts/staging/deploy.sh index 238b0ba..791bc49 100755 --- a/scripts/staging/deploy.sh +++ b/scripts/staging/deploy.sh @@ -9,3 +9,5 @@ apache_vhost="$(cat ops/apache2/vhost.conf)" echo "$apache_vhost" | mo > /etc/apache2/sites-enabled/000-default.conf service apache2 restart + +source ../installnode.sh