Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Running Galaxy Zoo from hem gives 404 on localhost #212

Closed
willettk opened this issue Aug 11, 2015 · 6 comments
Closed

Running Galaxy Zoo from hem gives 404 on localhost #212

willettk opened this issue Aug 11, 2015 · 6 comments

Comments

@willettk
Copy link
Contributor

Revisiting #186. I'm trying to get a version of GZ running locally so I can change some of the text describing subjects and science. Using the older version of node (0.10.40) successfully runs:

npm install .

./fits/build.rb
./interactive/build.rb

hem server
Starting Server at localhost:9294

Opening up localhost:9294 in the browser, though, just yields a 404.

screen shot 2015-08-11 at 12 26 54 pm

@edpaget
Copy link
Contributor

edpaget commented Aug 11, 2015

Does /index.html work?

@willettk
Copy link
Contributor Author

http://localhost:9294/index.html has the same result.

@parrish
Copy link
Contributor

parrish commented Aug 11, 2015

Could you post the result of

which hem (should look like ./node_modules/.bin/hem)

and

node -v (should be v0.10.x)

@willettk
Copy link
Contributor Author

Aha.

which hem yielded /usr/local/bin/hem, not the version in this directory.

Using ./node_modules/.bin/hem and node v.0.10 works. Thanks, @parrish and @edpaget!

@parrish
Copy link
Contributor

parrish commented Aug 11, 2015

No problem. I usually add the local npm .bin path in my bash profile with something like:

PATH="./node_modules/.bin:${PATH}"
# usually lots of other path modifications...
export PATH

So that when you use hem, the first binary bash finds is in the local path if it exists.

@willettk
Copy link
Contributor Author

Good suggestion. Thanks!

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

No branches or pull requests

3 participants