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
10 changes: 10 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@ dependencies:
test:
override:
- docker run kostyaurysov/sample-node npm test
<<<<<<< HEAD

=======

deployment:
production:
branch: master
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- ./deploy.sh
>>>>>>> 9259cf02047c086e5fa901505b8aead903494a88
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
docker build -t kostyaurysov/sample-node .
# docker build -t kostyaurysov/sample-node .
docker push kostyaurysov/sample-node

ssh deploy@35.187.30.81 << EOF
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"nodemon": "^1.9.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 0"
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
Expand Down
4 changes: 1 addition & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ var express = require("express");

express()
.get("*", function(req, res) {
db("users").then(function(data) {
res.send(data);
});
res.send("ok!");
})
.listen(80, function(err) {
if (err) {
Expand Down