Skip to content

Commit 258ea9a

Browse files
committed
running at Zeit
1 parent 4d8d0bd commit 258ea9a

File tree

4 files changed

+33
-7
lines changed

4 files changed

+33
-7
lines changed

deploy.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
#!/bin/bash
22
#
3-
# deploy the js backend to appfog
3+
# deploy the xregexp backend to zeit
44
#
5-
# NOTE: you may need to run af login first
5+
6+
7+
echo "INFO: listing existing versions"
8+
now ls regexplanet-xregexp
9+
10+
echo "INFO: deploying"
11+
now && now alias
12+
613
#
7-
af update regexplanet-xregexp
14+
# need to kill the old version!
15+
#
16+
echo "INFO: removing the old version "
17+
echo "WARNING: must be done manually with '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-xregexp",
3+
"alias": "regexplanet-xregexp.now.sh"
4+
}

package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
2-
"name":"regexplanet-xregexp",
3-
"version":"0.0.1",
4-
"dependencies": {}
2+
"name": "regexplanet-xregexp",
3+
"version": "0.0.1",
4+
"main": "server.js",
5+
"scripts": {
6+
"start": "node server.js"
7+
},
8+
"dependencies": {
9+
"express": "^4.15.4"
10+
},
11+
"engines": {
12+
"node": "8.1.4"
13+
},
14+
"repository": {
15+
"url": "https://www.github.com/fileformat/regexplanet-xregexp"
16+
}
517
}

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function getStatus()
4949
retVal["process.execPath"] = process.execPath;
5050
retVal["process.memoryUsage"] = process.memoryUsage();
5151
retVal["process.platform"] = process.platform;
52-
retVal["process.uptime"] = process.uptime;
52+
retVal["process.uptime"] = process.uptime();
5353
retVal["process.version"] = process.versions;
5454
retVal["process.versions"] = process.versions;
5555
retVal["process.installPrefix"] = process.installPrefix;

0 commit comments

Comments
 (0)