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
1 parent
9b1d21d
commit b1147c4
Showing
7 changed files
with
58 additions
and
2 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,14 @@ | ||
.git | ||
.gitignore | ||
GPL-LICENSE.txt | ||
README.md | ||
docker-compose.yml | ||
Dockerfile | ||
node_modules | ||
npm-debug.log | ||
.DS_Store | ||
.vagrant/ | ||
provisioning/ | ||
.idea/ | ||
build/ | ||
phonegap/ |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ provisioners | |
.idea | ||
/phonegap/env.json | ||
/phonegap/release.keystore | ||
/.env* |
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,24 @@ | ||
FROM heroku/cedar:14 | ||
|
||
# Which version of node? | ||
ENV NODE_ENGINE 0.12.12 | ||
# Locate our binaries | ||
ENV PATH /app/heroku/node/bin/:/app/user/node_modules/.bin:$PATH | ||
# Create some needed directories | ||
RUN mkdir -p /app/heroku/node /app/.profile.d | ||
WORKDIR /app/user | ||
# Install node | ||
RUN curl -s https://s3pository.heroku.com/node/v$NODE_ENGINE/node-v$NODE_ENGINE-linux-x64.tar.gz | tar --strip-components=1 -xz -C /app/heroku/node | ||
# Export the node path in .profile.d | ||
RUN echo "export PATH=\"/app/heroku/node/bin:/app/user/node_modules/.bin:\$PATH\"" > /app/.profile.d/nodejs.sh | ||
|
||
# Bundle install | ||
COPY package.json /app/user/package.json | ||
RUN npm version && \ | ||
npm install --unsafe-perm --ignore-scripts && \ | ||
npm rebuild && \ | ||
npm cache clean | ||
|
||
COPY . /app/user/ | ||
RUN aperture open | ||
RUN export $(cat .env) && echo $DB_HOST && npm run build |
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 |
---|---|---|
@@ -1 +1 @@ | ||
web: aperture link && npm start | ||
web: npm start |
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 |
---|---|---|
|
@@ -72,5 +72,6 @@ | |
{ | ||
"url": "https://github.com/CoinSpace/cs-heroku-buildpack-nodejs" | ||
} | ||
] | ||
], | ||
"image": "heroku/cedar:14" | ||
} |
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,8 @@ | ||
#!/bin/bash | ||
|
||
APP=$1 | ||
if [ -z $APP ]; then APP=dev-coinspace; fi | ||
|
||
echo "=== APP: $APP ===" | ||
cp .env.$APP .env | ||
heroku docker:release --app $APP |
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,8 @@ | ||
web: | ||
build: . | ||
command: 'bash -c ''npm start''' | ||
working_dir: /app/user | ||
environment: | ||
PORT: 8080 | ||
ports: | ||
- '8080:8080' |