Code Monkey home page Code Monkey logo

weinre-heroku's Introduction

weinre-heroku - heroku wrapper around weinre

If you'd like to run your very own weinre server on the big ol' internets, this project is for you.

You'll need some basic familiarity with heroku.

Here are the basic instructions:

$ git clone git://github.com/techiemanas/weinre-heroku.git
Cloning into 'weinre-heroku'...
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 11 (delta 0), reused 11 (delta 0)
Receiving objects: 100% (11/11), done.
                                              
$ cd weinre-heroku
                                              
$ heroku create
Creating aaa-bbb-666... done, stack is cedar
http://aaa-bbb-666.herokuapp.com/ | [email protected]:aaa-bbb-666.git
Git remote heroku added
                                              
$ git push heroku master
Counting objects: 11, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (10/10), done.
Writing objects: 100% (11/11), 1.23 KiB, done.
Total 11 (delta 0), reused 11 (delta 0)
                                              
-----> Heroku receiving push
-----> Node.js app detected
-----> Resolving engine versions
       Using Node.js version: 0.8.14
       Using npm version: 1.1.65
-----> Fetching Node.js binaries
-----> Vendoring node into slug
-----> Installing dependencies with npm
       ... npm junk elided ...
       Dependencies installed
-----> Building runtime environment
-----> Discovering process types
       Procfile declares types -> web
-----> Compiled slug size: 8.6MB
-----> Launching... done, v4
       http://aaa-bbb-666.herokuapp.com deployed to Heroku
                                              
To [email protected]:aaa-bbb-666.git
 * [new branch]      master -> master
                                              
$ heroku ps:scale web=1
Scaling web processes... done, now running 1
                                              
$ heroku ps
=== web: `node node_modules/.bin/weinre --httpPort $PORT --boundHost -all- --verbose`
web.1: up 2012/11/28 11:52:45 (~ 10s ago)
                                              
$ heroku open
Opening aaa-bbb-666... done

At this point, a browser has opened to your instance of weinre on the big ol' internets.

Enjoy!

running on Cloud Foundry

It's even easier to run weinre on Cloud Foundry than it is on Heroku!

Assumes you have an account on a Cloud Foundry-based PaaS, and have the cf tool installed.

If you're not currently using Cloud Foundry, you can try out IBM's BlueMix for free.

Here are the basic instructions:

  • note that you should substitute your own desired hostname in the -n option of the cf push weinre invocation below.
$ git clone git://github.com/pmuellr/weinre-heroku.git
Cloning into 'weinre-heroku'...
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 11 (delta 0), reused 11 (delta 0)
Receiving objects: 100% (11/11), done.
                                              
$ cd weinre-heroku
                                              
$ cf push weinre -n some-name-here
                                              
Creating app weinre in org [your-id-here] / space dev as [your-id-here]...
OK
                                              
Creating route some-name-here.ng.bluemix.net...
OK
                                              
Binding some-name-here.ng.bluemix.net to weinre...
OK
                                              
Uploading weinre...
Uploading from: ~/Projects/bluemix/weinre-heroku
27.2K, 26 files
OK
                                              
Starting app weinre in org [your-id-here] / space dev as [your-id-here]...
OK
    [staging messages elided]
1 of 1 instances running
                                              
App started
                                              
Showing health and status for app weinre in org [your-id-here] / space dev as [your-id-here]...
OK
                                              
requested state: started
instances: 1/1
usage: 1G x 1 instances
urls: some-name-here.ng.bluemix.net
                                              
     state     since                    cpu    memory        disk          
#0   running   2014-03-14 05:44:56 PM   0.0%   30.7M of 1G   42.7M of 1G 

At this point, you can open your browser on your new site at http://some-name-here.ng.bluemix.net running on the big ol' internets.

Enjoy!

weinre-heroku's People

Contributors

pmuellr avatar techiemanas avatar

Watchers

 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.