@rip-lang/server 1.3.31 → 1.3.33
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 +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rip-lang/server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.33",
|
|
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.49"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"api.rip",
|
package/server.rip
CHANGED
|
@@ -1295,7 +1295,16 @@ main = ->
|
|
|
1295
1295
|
|
|
1296
1296
|
httpOnly = flags.httpsPort is null
|
|
1297
1297
|
protocol = if httpOnly then 'http' else 'https'
|
|
1298
|
-
|
|
1298
|
+
port = flags.httpsPort or flags.httpPort or 80
|
|
1299
|
+
portStr = formatPort(protocol, port)
|
|
1300
|
+
appUrls = flags.appAliases.map (alias) ->
|
|
1301
|
+
host = if alias.includes('.') then alias else "#{alias}.local"
|
|
1302
|
+
"#{protocol}://#{host}#{portStr}"
|
|
1303
|
+
process.env.RIP_URLS = [
|
|
1304
|
+
"#{protocol}://rip.local#{portStr}"
|
|
1305
|
+
...appUrls
|
|
1306
|
+
"#{protocol}://#{flags.appName}.ripdev.io#{portStr}"
|
|
1307
|
+
].join(',')
|
|
1299
1308
|
|
|
1300
1309
|
svr.start!
|
|
1301
1310
|
mgr.start!
|