Skip to content

Commit

Permalink
add deployment files
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Romeu committed Mar 4, 2019
1 parent 90c9025 commit 873f93f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:8.7.0

ENV NPM_CONFIG_LOGLEVEL warn

COPY . .

RUN npm install

RUN npm run build --production

RUN npm install -g serve

COPY ./reciever.html bundle/

CMD serve -s bundle

EXPOSE 5000
14 changes: 14 additions & 0 deletions deploy_to_cartoio.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /bin/sh

# More info -> https://github.com/CartoDB/solutions/blob/master/doc/source/technical/deploying-to-cartoio.rst

APP_NAME="franchise-master"
BRANCH_NAME="master"

git remote remove dokku
git remote add dokku [email protected]:$APP_NAME
git push origin $BRANCH_NAME
ssh [email protected] apps:destroy $APP_NAME
git push dokku $BRANCH_NAME:master
ssh [email protected] certs:add $APP_NAME /home/dokku/tls/server.crt /home/dokku/tls/server.key
ssh [email protected] proxy:ports-add $APP_NAME https:443:5000

0 comments on commit 873f93f

Please sign in to comment.