Skip to content
Open
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
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ RUN apt-get -y install nodejs

RUN npm install -g forever nodemon
RUN npm install -g bower
RUN rm -rf node_modules || echo no-node_modules

ADD . /project

RUN bash -c "npm install"
RUN bash -c "bower install --config.interactive=false --allow-root"

EXPOSE 4000
CMD npm start
6 changes: 5 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Flashlight",
"name": "flashlight",
"description": "",
"main": "index.js",
"license": "ISC",
Expand All @@ -17,5 +17,9 @@
"bootstrap-material-design": "~0.5.7",
"angular-animate": "~1.4.8"
},
"resolutions": {
"angular": "1.4.14"
},

"homepage": ""
}
2 changes: 1 addition & 1 deletion flashlight/config/default.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
port: 4000,
port: +(process.env.PORT || 4000),

TokenService: {
key: 'xxxx$$secrettzzzz$$zz'
Expand Down
2 changes: 1 addition & 1 deletion flashlight/config/dev.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
port: 3000
// port: 3000
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "Flashlight",
"name": "flashlight",
"version": "0.0.1",
"description": "Flashlight",
"main": "app.js",
"scripts": {
"setup": "npm install && bower install --config.interactive=false --allow-root",
"start": "npm run setup && nodemon app.js -L -i node_modules/ -i public/",
"start": "forever app.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down