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
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,17 @@ websocketd-cloudfoundry
3
3
4
4
example script for [websocketd](https://github.com/joewalnes/websocketd) that enable running interactive commands for a cloud foundry application using a browser and websocket. websocketd with the devconsole option can easily send text commands from the browser (such as `rake db:migrate`) to STDIN of the `bash.sh` script which executes the commands and returns STDOUT as lines to the browser.
1. downlaod a [linux 64bit version of websocketd](https://github.com/joewalnes/websocketd/wiki/Download-and-install#downloads) and place it in this directory
7
11
2. execute `chmod +x websocketd`
8
12
3. copy the entire `websocketd-cloudfoundry` into the app dir you would like to use it with
9
13
4. push the application using something like `gcf push myapp -c '/app/websocketd-cloudfoundry/websocketd --port=$PORT --dir=/app/websocketd-cloudfoundry --devconsole`
10
14
5. visit the URL of the application with /bash.sh at the end
11
15
6. make sure that URL next to the checkbox uses the right protocol (either ws or wss) and a port that supports that protocol. on run.pivotal.io that will be a URL like wss://websocketd.cfapps.io:4443/bash.sh
12
16
7. type some commands such as `pwd` or `ls -al` or `ps aux`
17
+
18
+
for more detail [this video](https://www.youtube.com/watch?v=aRq38DEa-gE) or [the blog post](http://www.iamjambay.com/2013/12/send-interactive-commands-to-cloud.html).
0 commit comments