-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
42 changed files
with
5,468 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,15 @@ | ||
# Development environment | ||
# ----------------------- | ||
FROM node:latest | ||
WORKDIR /webpack | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
ENV NODE_ENV=development | ||
ARG SPONSOR | ||
|
||
COPY docker ./ | ||
|
||
CMD node index.js |
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 @@ | ||
web: node index.js |
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,15 @@ | ||
version: v2 | ||
name: js-test-app-buildpack | ||
services: | ||
- name: web | ||
run: node index.js | ||
type: web | ||
port: 3000 | ||
build: | ||
context: ./ | ||
method: pack | ||
builder: heroku/buildpacks:20 | ||
buildpacks: | ||
- heroku/nodejs | ||
predeploy: | ||
run: ls |
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,13 @@ | ||
version: v2 | ||
name: js-test-app-dockerfile | ||
services: | ||
- name: web | ||
run: node index.js | ||
type: web | ||
port: 3000 | ||
build: | ||
context: ./ | ||
method: docker | ||
dockerfile: ./docker/Dockerfile | ||
predeploy: | ||
run: ls |
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,11 @@ | ||
const express = require('express'); | ||
const app = express(); | ||
|
||
app.use(express.static('public')); | ||
|
||
app.get('/', (req, res) => { | ||
res.send('Tetris time.'); | ||
}); | ||
|
||
var sponsor = process.env.SPONSOR || "unsponsored"; | ||
app.listen(process.env.PORT || 3000, () => console.log('Tetris app listening on port 3000! Brought to you all by', sponsor + ", of course.")); |
Oops, something went wrong.