Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic deploy #11

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions nginx.conf.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root /app;

location / {
index index.html;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
27 changes: 27 additions & 0 deletions scripts/scalingo-deploy.sh
Original file line number Diff line number Diff line change
@@ -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"