Skip to content

Commit

Permalink
production changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkly committed Feb 29, 2016
1 parent 4d4210d commit bdd2cd4
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ jspm_packages
# ===== End Node.gitignore =====

deployment
Desktop
.dockerignore
3 changes: 3 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
runtime: nodejs
vm: true
api_version: 1
2 changes: 1 addition & 1 deletion dist/bundle.min.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
"version": "0.0.1",
"description": "A simple API layer to model an inventory",
"main": "server.js",
"engines": {
"node": "~5.6"
},
"scripts": {
"start": "webpack-dev-server --inline",
"start": "node server",
"dev": "webpack-dev-server --inline",
"server": "DEV=true nodemon server --ignore public/ --ignore store/",
"test": "mocha './tests/**/*.spec.js' --compilers js:babel-core/register",
"testwatch": "clear && mocha './tests/**/*.spec.js' --compilers js:babel-core/register --watch",
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import InventorySystem from './components/InventorySystem';
// minify and deploy

renderDOM(
<InventorySystem url='//localhost:3000/api/items' />,
<InventorySystem url='/api/items' />,
document.getElementById('content')
);

1 change: 0 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const INVENTORY = Path.join(__dirname, 'store/items.json');
const server = new Hapi.Server();

server.connection({
host: 'localhost',
port: process.env.PORT || 3000
});

Expand Down
10 changes: 0 additions & 10 deletions store/items.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
{
"pear": {
"label": "pear",
"type": "fruit",
"expiration": 1456798183044
},
"quiche": {
"label": "quiche",
"type": "uhh",
"expiration": 1456711793044
},
"wine": {
"label": "wine",
"type": "drink",
Expand Down
2 changes: 1 addition & 1 deletion webpack.prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
output: {
path: path.resolve(__dirname, 'dist'),
publicPath: '/',
filename: 'bundle.js'
filename: 'bundle.min.js'
},
module: {
loaders: [
Expand Down

0 comments on commit bdd2cd4

Please sign in to comment.