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

Web root in config & command line #60

Closed
rjmoggach opened this issue Nov 10, 2017 · 7 comments
Closed

Web root in config & command line #60

rjmoggach opened this issue Nov 10, 2017 · 7 comments

Comments

@rjmoggach
Copy link

I haven't found documentation on where the web folder is expected to live. Ideally this would be configurable to point to a user directory Eg. /home/mine/web/excavator either via command line flag -wrd ---web-root-dir or in the config file.

@rjmoggach
Copy link
Author

label as feature request

@lexkanev
Copy link

robmoggach, have you find solution of web folder placement?

@t4nja
Copy link
Contributor

t4nja commented Nov 22, 2017

@lexkanev web folder has to be in the same folder you run the binary from.

@lexkanev
Copy link

@dropky so, my binary is in /opt/excavator/bin/ and I copied there the web folder (with index.html in it), ran in bash "excavator -wp 8080 -wi 192.168.1.1 -c default.json", go to "http://192.168.1.1:8080/" and get "404 Not Found".
But when I do json request to http api I can get data properly.
What is my mistake?

@t4nja
Copy link
Contributor

t4nja commented Nov 23, 2017

Are you sure you're running excavator from /opt/excavator/bin directory?

Like this:
cd /opt/excavator/bin; excavator -wp 8080 -wi 192.168.1.1 -c default.json

@lexkanev
Copy link

@dropky thnx! Now it's working properly! Before this I used to start commands: "excavator ...." and "/opt/excavator/bin/excavator -wp ..." but not doing "cd " to the folder.
Thank you very much!

@t4nja
Copy link
Contributor

t4nja commented Jan 15, 2018

https://github.com/nicehash/excavator/releases/tag/v1.3.9a

Added '-wl' command line parameter to specify path to index.html.

@t4nja t4nja closed this as completed Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants