diff --git a/nginx.conf.erb b/nginx.conf.erb new file mode 100644 index 0000000000..c821d42f66 --- /dev/null +++ b/nginx.conf.erb @@ -0,0 +1,5 @@ +root /app; + +location / { + index index.html; +} diff --git a/package.json b/package.json index a3625a3c0c..e8283af090 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "element-web", - "version": "1.10.7-rc.1", + "version": "1.10.7", "description": "A feature-rich client for Matrix.org", "author": "New Vector Ltd.", "repository": { diff --git a/scripts/scalingo-deploy.sh b/scripts/scalingo-deploy.sh new file mode 100755 index 0000000000..003c9e47d9 --- /dev/null +++ b/scripts/scalingo-deploy.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e + +# only available in npm versions > 16 +version=$(npm pkg get version | sed 's/"//g') +#version=$(grep '"version"' package.json | cut -d '"' -f 4 | head -n 1) + +yarn clean +VERSION=$version yarn build + +# FIXME use a dedicated config +cp config.sample.json webapp/config.json +cp nginx.conf.erb webapp/nginx.conf.erb + +mkdir -p dist +cp -r webapp element-$version + +$(dirname $0)/normalize-version.sh ${version} > element-$version/version + +tar chvzf dist/element-$version.tar.gz element-$version +rm -r element-$version + +echo +echo "Packaged dist/element-$version.tar.gz" + +scalingo --app tchap-dev --region osc-secnum-fr1 deploy "dist/element-$version.tar.gz"