Git Product home page Git Product logo

websocketd-cloudfoundry's Introduction

websocketd-cloudfoundry

example script for 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.

Screenshot

instructions

  1. downlaod a linux 64bit version of websocketd and place it in this directory
  2. execute chmod +x websocketd
  3. copy the entire websocketd-cloudfoundry into the app dir you would like to use it with
  4. push the application using something like gcf push myapp -c '/app/websocketd-cloudfoundry/websocketd --port=$PORT --dir=/app/websocketd-cloudfoundry --devconsole
  5. visit the URL of the application with /bash.sh at the end
  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
  7. type some commands such as pwd or ls -al or ps aux

for more detail this video or the blog post.

websocketd-cloudfoundry's People

Watchers

Julian Fischer avatar Daniel Leidisch avatar  avatar James Cloos avatar Wolf Oliver avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.