Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs for integrating with local jsbin install #35

Open
mattdsteele opened this issue Oct 6, 2014 · 7 comments
Open

Docs for integrating with local jsbin install #35

mattdsteele opened this issue Oct 6, 2014 · 7 comments

Comments

@mattdsteele
Copy link

To get my own jsbin up & running, I followed the run your own jsbin instructions, which were really helpful.

Is there something similar for Pennyworth? Its README doesn't really explain how to configure jsbin so it talks to Pennyworth, at least from what I can tell. Am I looking in the wrong place?

@pjanaya
Copy link

pjanaya commented Jun 26, 2015

Did you/someone figure out how to do the installation in local?. I need to add support for SASS/SCSS in my own JSbin server and I'm a bit stuck here.

@mattdsteele
Copy link
Author

@pjanaya I was able to perform an installation with Pennyworth running on the same host as my jsbin instance. It's not particularly difficult, here's what I did:

Configuring Pennyworth

  • Grab the source, extract it to a folder you want to use
  • npm install
  • ./bootstrap.sh (this will setup Ruby, Sass, etc.)

To start it up, run node lib/server.js

Configuring JSBin

In your config.json, add this key:

  "processor": {
    "address": 5555
  },

(Note you can change this port to whatever you'd like, but you need to set the HOST environment var when running Pennyworth.

And startup JSBin the way you normally do. You should see this message in the logs:

processor pushing locally, expecting pennyworth to pull

@remy let me know if I'm way off base on how this should run, I kind of stumbled into getting it working.

@remy
Copy link
Member

remy commented Jun 29, 2015

@mattdsteele that looks about right. Nicely done.

Can I ask how you're using it, or in what environment/company?

@mattdsteele
Copy link
Author

@remy I work in a corporate environment (Fortune 200) and maintain a front-end component library (a set of Angular directives, jQuery plugins, among other things).

Part of my work is supporting app teams that use the library. We can share code snippets, best practice examples, and create test cases for debugging purposes.

Running an on-prem JSBin helps us with all these, as we have an aversion to cloud-based tools (our internal corporate proxy blocks jsbin.com, actually).

@remy
Copy link
Member

remy commented Jun 29, 2015

Sounds good. You should get the company to donate to
https://gratipay.com/~js_bin/ - especially if its a fortune 200!

On Mon, 29 Jun 2015 22:55 Matt Steele [email protected] wrote:

@remy https://github.com/remy I work in a corporate environment
(Fortune 200) and maintain a front-end component library (a set of Angular
directives, jQuery plugins, among other things).

Part of my work is supporting app teams that use the library. We can share
code snippets, best practice examples, and create test cases for debugging
purposes.

Running an on-prem JSBin helps us with all these, as we have an aversion
to cloud-based tools (our internal corporate proxy blocks jsbin.com,
actually).


Reply to this email directly or view it on GitHub
#35 (comment).

@pjanaya
Copy link

pjanaya commented Jun 30, 2015

@mattdsteele Thank you, sir! Now it's working. Finally worked but to execute Pennyworth I had to do it with my local IP as HOST:

HOST=192.168.57.118 node lib/server.js

@remy My environment is basically the same (but not Fortune 200). I'm supporting teams to use some custom assets I made and we need to share snippets. Corporate policy bans any cloud-based service like JSBin or even Dropbox. I'll suggest a donation!

Thank you both!

@remy
Copy link
Member

remy commented Jun 30, 2015

Please do, because jsbin is just me so if a business can benefit from my
making this all free to use, I'd appreciate the tip back! Certainly the pro
revenue stream is less of a stream rather than a dribble...

On Tue, 30 Jun 2015 10:31 Pablo Anaya [email protected] wrote:

@mattdsteele https://github.com/mattdsteele Thank you, sir! Now it's
working. Finally worked but to execute Pennyworth I had to do it with my
local IP as HOST:

HOST=192.168.57.118 node lib/server.js

@remy https://github.com/remy My environment is basically the same (but
not Fortune 200). I'm supporting teams to use some custom assets I made and
we need to share snippets. Corporate policy bans any cloud-based service
like JSBin or even Dropbox. I'll suggest a donation!

Thank you both!


Reply to this email directly or view it on GitHub
#35 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants