forked from HVF/franchise
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alberto Romeu
committed
Mar 4, 2019
1 parent
90c9025
commit 873f93f
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |