Fix casing in field names in index.hbs; improve node-dev container workflow.

This commit is contained in:
jkaplon 2015-10-06 14:27:17 -04:00
parent f7a68e8823
commit 7129f10f56
3 changed files with 20 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
node_modules node_modules
db db
.vimrc

View File

@ -1,4 +1,19 @@
FROM node:0.12.4-onbuild FROM node:4.1.2
EXPOSE 3000 EXPOSE 3000
RUN mkdir /usr/src/app/db
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN mkdir -p /usr/src/app/db
VOLUME ["/usr/src/app/db"] VOLUME ["/usr/src/app/db"]
RUN npm install -g nodemon
RUN apt-get update && apt-get install -y vim git
COPY .vimrc ~/.vimrc
COPY package.json /usr/src/app/
RUN npm install
COPY . /usr/src/app
# Use nodemon to start app, note this will break if main file no longer named server.js.
CMD [ "nodemon", "server.js" ]

View File

@ -16,7 +16,7 @@
<tr class="{{this.rowclass}}"> <tr class="{{this.rowclass}}">
<td> <td>
{{#if this.corename}} {{#if this.corename}}
<a href="https://particle.kaplon.us/core/{{this.coreId}}">{{this.corename}}</a> <a href="https://particle.kaplon.us/core/{{this.coreid}}">{{this.corename}}</a>
{{else}} {{else}}
<a href="https://particle.kaplon.us/core/{{this.coreid}}"># No Name #</a> <a href="https://particle.kaplon.us/core/{{this.coreid}}"># No Name #</a>
</br> </br>
@ -31,7 +31,7 @@
# No Location # # No Location #
</br> </br>
</br> </br>
<a href="https://particle.kaplon.us/core/edit/{{this.coreId}}" class="btn btn-primary">Edit Details</a> <a href="https://particle.kaplon.us/core/edit/{{this.coreid}}" class="btn btn-primary">Edit Details</a>
{{/if}} {{/if}}
</td> </td>
<td>{{this.maxpubdate}}</td> <td>{{this.maxpubdate}}</td>