@rip-lang/server 0.7.10 → 0.7.11
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 +1 -1
- package/server.rip +41 -0
package/package.json
CHANGED
package/server.rip
CHANGED
|
@@ -1075,6 +1075,47 @@ main = ->
|
|
|
1075
1075
|
console.log 'rip-server (version unknown)'
|
|
1076
1076
|
return
|
|
1077
1077
|
|
|
1078
|
+
# Help flag
|
|
1079
|
+
if '--help' in process.argv or '-h' in process.argv
|
|
1080
|
+
console.log """
|
|
1081
|
+
rip-server - Pure Rip application server
|
|
1082
|
+
|
|
1083
|
+
Usage:
|
|
1084
|
+
rip-server [options] [app-path] [app-name]
|
|
1085
|
+
rip-server [options] [app-path]@<alias1>,<alias2>,...
|
|
1086
|
+
|
|
1087
|
+
Options:
|
|
1088
|
+
-h, --help Show this help
|
|
1089
|
+
-v, --version Show version
|
|
1090
|
+
-w, --watch Watch *.rip files for changes (hot reload)
|
|
1091
|
+
-w=<glob> Watch custom glob pattern (e.g., -w=*.ts)
|
|
1092
|
+
--static Disable hot reload
|
|
1093
|
+
--env=<mode> Set environment (dev, production)
|
|
1094
|
+
--debug Enable debug logging
|
|
1095
|
+
|
|
1096
|
+
Network:
|
|
1097
|
+
http HTTP only (no TLS)
|
|
1098
|
+
https HTTPS with auto TLS (default)
|
|
1099
|
+
<port> Listen on specific port
|
|
1100
|
+
--cert=<path> TLS certificate file
|
|
1101
|
+
--key=<path> TLS key file
|
|
1102
|
+
--auto-tls Generate TLS cert via mkcert
|
|
1103
|
+
--hsts Enable HSTS header
|
|
1104
|
+
--no-redirect-http Don't redirect HTTP to HTTPS
|
|
1105
|
+
|
|
1106
|
+
Workers:
|
|
1107
|
+
w:<n> Number of workers (default: cores/2)
|
|
1108
|
+
w:auto One worker per core
|
|
1109
|
+
r:<n>,<s>s Restart policy: max requests, max seconds
|
|
1110
|
+
|
|
1111
|
+
Examples:
|
|
1112
|
+
rip-server Start with ./index.rip
|
|
1113
|
+
rip-server -w Start with file watching
|
|
1114
|
+
rip-server myapp Start with app name "myapp"
|
|
1115
|
+
rip-server api -w 8080 Watch mode on port 8080
|
|
1116
|
+
"""
|
|
1117
|
+
return
|
|
1118
|
+
|
|
1078
1119
|
# Helper functions for subcommands
|
|
1079
1120
|
getKV = (prefix) ->
|
|
1080
1121
|
for tok in process.argv
|