Skip to content

Commit

Permalink
New Server Module System
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-dspeed committed Apr 22, 2016
1 parent 17f672d commit e6aecca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
*/.git
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM node:latest
ADD . /server
RUN cd $(npm root -g)/npm \
&& npm install fs-extra \
&& sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.move/fs.rename/ ./lib/utils/rename.js
RUN /bin/sh -c "(cd $(npm root -g)/npm && npm install fs-extra && sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs.move/ ./lib/utils/rename.js)"
WORKDIR /server
RUN npm install
ENTRYPOINT ["/server/bin/dssrv"]
CMD ["-h"]
CMD ["-h"]
6 changes: 6 additions & 0 deletions lib/harp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

var harpserver = require ('harp')

module.exports = function take(verzeichniss) {
return harpserver.mount(verzeichniss)
}

0 comments on commit e6aecca

Please sign in to comment.