@rip-lang/api 0.5.0 → 0.5.1
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/api.rip +3 -0
- package/package.json +1 -1
package/api.rip
CHANGED
|
@@ -300,6 +300,9 @@ runHandler = (c, handler) ->
|
|
|
300
300
|
export startHandler = -> fetch
|
|
301
301
|
|
|
302
302
|
export start = (opts = {}) ->
|
|
303
|
+
# Skip if running under rip-server (worker sets these env vars)
|
|
304
|
+
return if process.env.WORKER_ID? or process.env.SOCKET_PATH?
|
|
305
|
+
|
|
303
306
|
handler = startHandler()
|
|
304
307
|
host = opts.host or '0.0.0.0'
|
|
305
308
|
port = opts.port or 3000
|