From 921f27e4d88722f8c2ee49733e0e058285507db3 Mon Sep 17 00:00:00 2001 From: Torben Indorf Date: Wed, 19 Feb 2020 21:49:28 +0100 Subject: [PATCH] deployment stuff --- .env.production | 2 +- .htaccess | 8 ++++++++ deploy.sh | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .htaccess create mode 100644 deploy.sh diff --git a/.env.production b/.env.production index 60ce2d5..7a5006b 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,6 @@ VUE_APP_TITLE=GelegeApp - Dev -VUE_APP_BASE_URL= http://dev.lifemap.rocks:1337/ +VUE_APP_BASE_URL= http://dev-api.lifemap.rocks/ VUE_APP_AUTH_URL= auth/ VUE_APP_I18N_LOCALE=de diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..4dd8c31 --- /dev/null +++ b/.htaccess @@ -0,0 +1,8 @@ + + RewriteEngine On + RewriteBase / + RewriteRule ^index\.html$ - [L] + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule . /index.html [L] + diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..822ce97 --- /dev/null +++ b/deploy.sh @@ -0,0 +1 @@ +ssh -t gelege-app 'bash -i -c "cd /var/www/html/dev/gelegeapp-frontend && git pull && npm install && npm run build && cp .htaccess dist/.htaccess"' \ No newline at end of file