@rip-lang/server 1.3.26 → 1.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/server.rip +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rip-lang/server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.28",
|
|
4
4
|
"description": "Pure Rip web framework and application server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "api.rip",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"author": "Steve Shreeve <steve.shreeve@gmail.com>",
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"rip-lang": ">=3.13.
|
|
48
|
+
"rip-lang": ">=3.13.44"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"api.rip",
|
package/server.rip
CHANGED
|
@@ -515,7 +515,7 @@ class Manager
|
|
|
515
515
|
# Check reachability before setup — determines if WE will start the DB
|
|
516
516
|
dbUrl = process.env.DB_URL or 'http://localhost:4213'
|
|
517
517
|
dbAlreadyRunning = try
|
|
518
|
-
|
|
518
|
+
fetch! dbUrl + '/health'
|
|
519
519
|
true
|
|
520
520
|
catch
|
|
521
521
|
false
|
|
@@ -722,7 +722,6 @@ class Manager
|
|
|
722
722
|
return if @shuttingDown
|
|
723
723
|
@shuttingDown = true
|
|
724
724
|
@stop!
|
|
725
|
-
try fetch!(@dbUrl + '/shutdown', { method: 'POST' }) if @dbUrl catch then null
|
|
726
725
|
process.exit(0)
|
|
727
726
|
|
|
728
727
|
getEntryMtime: ->
|
|
@@ -1285,6 +1284,7 @@ main = ->
|
|
|
1285
1284
|
try unlinkSync(pidFile) catch then null
|
|
1286
1285
|
svr.stop()
|
|
1287
1286
|
mgr.stop!
|
|
1287
|
+
try fetch!(mgr.dbUrl + '/shutdown', { method: 'POST' }) if mgr.dbUrl catch then null
|
|
1288
1288
|
process.exit(0)
|
|
1289
1289
|
|
|
1290
1290
|
process.on 'SIGTERM', cleanup
|