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

Path issue when running locally #4

Closed
kwadroke opened this issue Mar 6, 2014 · 1 comment
Closed

Path issue when running locally #4

kwadroke opened this issue Mar 6, 2014 · 1 comment

Comments

@kwadroke
Copy link

kwadroke commented Mar 6, 2014

I had some issues with running quakejs games locally.
The README.md states

Running locally

echo '{ "content": "content.quakejs.com" }' > bin/web.json
node bin/web.js --config bin/web.json

but for some reason that will not grab the files from the content.quakejs.com server

info:    loading config file from bin/web.json..
warn:    failed to load config code=MODULE_NOT_FOUND

But if I put the full path to the web.json file...

node bin/web.js --config /home/user/quakejs/bin/web.json

OR WITH

node bin/web.js --config $PWD/bin/web.json

The files are pulled down from the content server fine. Not sure if there's a code issue, or just the README.md file needs to be updated to include the full path. I solved my issue, but others might run into this as well.

I tried to run this from Ubuntu 13.10 & Debian 7.4 machines with the same results. Figured you'd like to know.

@michaelenger
Copy link
Contributor

You can also use a path relative to the web.js file:
node bin/web.js --config ./web.json

Note that using it without the ./ won't work.

@inolen inolen closed this as completed Apr 18, 2014
glennhartmann pushed a commit to glennhartmann/quakejs that referenced this issue Sep 14, 2020
added baseq3 & cpma server.cfg files
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