Skip to content

Commit 2074db0

Browse files
committed
hosting at zeit
1 parent 7576e8e commit 2074db0

File tree

5 files changed

+32
-10
lines changed

5 files changed

+32
-10
lines changed
File renamed without changes.

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function getStatus()
4444
retVal["process.execPath"] = process.execPath;
4545
retVal["process.memoryUsage"] = process.memoryUsage();
4646
retVal["process.platform"] = process.platform;
47-
retVal["process.uptime"] = process.uptime;
47+
retVal["process.uptime"] = process.uptime();
4848
retVal["process.version"] = process.versions;
4949
retVal["process.versions"] = process.versions;
5050
retVal["process.versions['v8']"] = process.versions["v8"];
@@ -441,5 +441,5 @@ http.createServer(function (request, response)
441441

442442
}).listen(port);
443443

444-
util.puts("Server running on port " + port);
444+
console.info("INFO: Server running on port " + port);
445445

deploy.sh

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
#!/bin/bash
22
#
3-
# deploy the js backend to AppFog
3+
# deploy the js backend to Zeit
44
#
5-
# NOTE: you may have to "af login" first
6-
af update regexplanet-js
5+
# https://zeit.co/docs/features/now-cli
6+
7+
#
8+
# list existing instance
9+
#
10+
now list regexplanet-js
11+
12+
#
13+
# deploy new one
14+
#
15+
now --public && now alias
16+
17+
#
18+
# move alias to new one
19+
#
20+
# now alias greek normal
21+
22+
#
23+
# delete old one
24+
#
25+
#now rm

now.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "regexplanet-js",
3+
"alias": "regexplanet-js.now.sh"
4+
}

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
2-
"name":"regexplanet-js",
3-
"version":"0.0.1",
2+
"name": "regexplanet-js",
3+
"version": "1.0.0",
44
"main": "app.js",
55
"scripts": {
66
"start": "node app.js"
77
},
88
"dependencies": {
9-
"express": "^4.15.4"
9+
"express": "^4.16.0"
1010
},
1111
"engines": {
12-
"node": "8.1.4"
12+
"node": "8.11.3"
1313
},
1414
"repository": {
1515
"url": "https://www.github.com/fileformat/regexplanet-js"
1616
}
1717
}
18-

0 commit comments

Comments
 (0)