Live data from Hacker News

Introducing Pow, a zero-configuration Rack server for Mac OS X

pow.cx

81–90 of 146 posts

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#81

Installation wasn't easy or slick here: *** Installing local configuration files... /Users/bonaldi/Library/Application Support/Pow/Versions/0.2.2/lib/command.js:50 throw err; ^ Error: EACCES, Permission denied '/Users/bonaldi/Library/LaunchAgents/cx.pow.powd.plist'

If anyone else sees this, the script assumes it can write to ~/Library/LaunchAgents as you. Make sure you can!

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#83

A gem distribution of this would have been nice... simply so that instead of: $ curl get.pow.cx | sh $ cd ~/.pow $ ln -s /path/to/myapp We could have: $ gem install pow $ pow /path/to/myapp

pow isn't written in ruby, but javascript. So it might be installable from npm soon.

If you `git clone git://github.com/37signals/pow.git`, you can install it from source with `npm install -g` (requires npm 1.0)

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#84

Earlier quoted context omitted.

Odd - my two apps have identical .rvmrc files (both using the same interpreter and gemset). Even odder, the first app is now working, and I'm completely not sure why.

It turned out my issue was being caused because I was running an older version of rvm. Updating fixed it.

Incidentally, RVM is another software package with a curl-based install :)

$ bash http://rvm.beginrescueend.com/releases/rvm-install-head )

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#85
post #84

Earlier quoted context omitted.

It turned out my issue was being caused because I was running an older version of rvm. Updating fixed it.

Incidentally, RVM is another software package with a curl-based install :) $ bash http://rvm.beginrescueend.com/releases/rvm-install-head )

And npm is another popular one. I'm not sure if the multiple examples helps your case or tptacek's though. (That is, we all seem to be getting more and more comfortable with this style of installation.)

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#86
post #84

Earlier quoted context omitted.

Incidentally, RVM is another software package with a curl-based install :) $ bash http://rvm.beginrescueend.com/releases/rvm-install-head )

And npm is another popular one. I'm not sure if the multiple examples helps your case or tptacek's though. (That is, we all seem to be getting more and more comfortable with this style of installation.)

tptacek has a good point that you shouldn't just trust any old curl-based install, but I think that really applies to any install of any kind. I think you have to consider the source of any software package, it's not something specific to this particular method.

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#87
post #60

Earlier quoted context omitted.

So would, curl https://get.pow.cx/ | sh Fix your complaint? Like the grandparent said, I'm not sure why curl | sh is any less secure than gem install or whathaveyou, in the oh-god-this-script-just-ran-rm-rf-/ sense.

Just let me know when I can do: port selfupdate; port info ...

I thought everyone moved over to homebrew now :)

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#88
post #58
post #18

Earlier quoted context omitted.

Well, just to play devil's advocate, do you read through the source code of MySQL, Apache, or RPM packages every time you install them? With things like this that come from reputable sources, it's not unreasonable to put some trust in the source and some trust in the smaller percentage of developers who actually read the source code.

As other have pointed out above, the point is not where you think it is coming from, it is where it is actually coming from. Someone could easily man in the middle the connection and change the code you download, so your computer ran whatever they wanted you to run.

You say someone could "easily" man-in-the-middle the connection, but is it really that easy? Or likely? (Assuming you're not installing it from a random public wifi hotspot.)

Even so, assuming you want to be extra careful (you're installing it on a development machine with highly sensitive information), it's not that difficult to clone the repo and edit the install script to install from your local copy of the repo.

Re: Introducing Pow, a zero-configuration Rack server for Mac OS X

#89

Maybe it's just me but I can not seem to get any application to work. Chrome just says "Server Not Found". I tried to check the logs in ~/Library/Logs/Pow but the directory doesn't even exist. Didn't know if it was something silly before I created a ticket on Github.

yep, same thing here. I get this if I launch it manually on 10.6.7: launchctl load "$HOME/Library/LaunchAgents/cx.pow.powd.plist" Bug: launchctl.c:2325 (23930):13: (dbfd = open(g_job_overrides_db_path, O_RDONLY | O_EXLOCK | O_CREAT, S_IRUSR | S_IWUSR)) != -1 launch_msg(): Socket is not connected

yeah, that seemed to have fixed it. Terminal works, iTerm doesn't.
Post reply on HN