Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
pantsel committed Feb 12, 2017
1 parent 106c4cb commit e713870
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ frontend/npm-debug.log
_README.md
frontend/config/config.json
backend/api/services/remote/credentials/google-spreadsheets

frontend/bower_components/
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM mhart/alpine-node

RUN apk update && apk upgrade && \
apk add --no-cache make gcc g++ python bash git
apk add --no-cache bash git


RUN npm install -g bower gulp


WORKDIR /app

# Copy app
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ Environment variables

<pre>
$ docker pull pantsel/konga
$ docker run -p {frontend port}:3000 -p {backend-port}:1338 -e KONGA_BACKEND_URL={full backend url} pantsel/konga
$ docker run -p {frontend port}:3000
-p {backend-port}:1338
-e KONGA_BACKEND_URL={full backend url}
pantsel/konga
</pre>


Expand Down
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"private": true,
"scripts": {
"start": "gulp watch",
"test": "gulp test"
"test": "gulp test",
"postinstall": "bower --allow-root install"
},
"keywords": [
"angular"
Expand Down
4 changes: 2 additions & 2 deletions frontend/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var connect = require('connect');
var serveStatic = require('serve-static');
var path = require('path')
connect().use(serveStatic(path.join(__dirname,'dist'))).listen(3001, function(){
console.log('Server running on 3001...');
connect().use(serveStatic(path.join(__dirname,'dist'))).listen(3000, function(){
console.log('Server running on 3000...');
});

0 comments on commit e713870

Please sign in to comment.