You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Node.php originates from my ealier [answer on Stack Overflow](http://stackoverfl
7
7
8
8
The node.php script installs an official node.js package, starts a hidden server on localhost:49999 with provided JS file and proxies all requests to it.
9
9
10
-
h3. Warning! This is an alpha version, it is unsecure, you run it on your own risk!
10
+
###Warning! This is an alpha version, it is unsecure, you run it at your own risk!
11
11
12
12
Requirements
13
13
------------
@@ -19,18 +19,20 @@ How to run
19
19
20
20
Put the `node.php` file in your public_html (or similar) folder, then install node.js by browsing to: `http://example.org/node.php?install`.
21
21
22
-
When succeeded, you can install your node.js app by copying its folder or by using npm: `http://example.org/node.php?npm=install jt-js-sample`.
22
+
When succeeded, you can install your node.js app by uploading its folder or using npm: `http://example.org/node.php?npm=install jt-js-sample`.
23
23
24
24
When everything goes fine, start your node.js instance by going to: `http://example.org/node.php?start=node_modules/jt-js-sample/index.js`.
25
25
26
-
Finally, you can request your app by browsing to: `http://example.org/node.php?path=optional/request/path`. This will return a response from the running node.js app at `http://127.0.0.1:49999/optional/request/path`.
26
+
Now you can request your app by browsing to: `http://example.org/node.php?path=optional/request/path`. This will return a response from the running node.js app at `http://127.0.0.1:49999/optional/request/path`.
27
+
28
+
Finally, stop your node.js server by loading: `http://example.org/node.php?stop`.
27
29
28
30
Commands
29
31
--------
30
32
31
33
`node.php[?path=some/path]` - serves an already running node.js app with an optional request path (no leading slash)
32
34
33
-
The following commands require the `ADMIN_MODE`on:
35
+
The following commands require the `ADMIN_MODE`set to `true` (line 13 of `node.php`):
34
36
35
37
`node.php?install` - downloads and extracts node.js into the `node` folder.
36
38
@@ -52,6 +54,4 @@ License
52
54
53
55
Node.js is developed by Joyent et al. under the MIT License.
54
56
55
-
Node.php is developed by Jerzy Głowacki under the MIT License.
56
-
57
-
*[LAMP]: Linux, Apache, MySQL, PHP
57
+
Node.php is developed by Jerzy Głowacki under the MIT License.
0 commit comments