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

how to execute miner.hmtl? #2

Closed
emonkz opened this issue Apr 2, 2018 · 3 comments
Closed

how to execute miner.hmtl? #2

emonkz opened this issue Apr 2, 2018 · 3 comments

Comments

@emonkz
Copy link

emonkz commented Apr 2, 2018

Hi newbie here :)

I wanna ask about how to execute miner.html because after I type pool address and then port and then address,I cant connect to miner.html form. But when I tried this to your page https://jefreesujit.github.io/easyminer , eveything is fine.

http://45.77.255.89/miner?pool=trtl.mine2gether.com&port=1115&currency=trtl&address=TRTLv1HRHkYEFHzx2yS8qAjZM3N7ApuQwETcy4WUU5xA1LkB9vKoWAd9cUvsLRq5pbaGjrwkSYaNMDC4SwE6kzDzEydzVAc2sqq

404 Not Found
nginx/1.10.3 (Ubuntu)

Regards,

emonkz

@Jefreesujit
Copy link
Owner

Hi, first of all i m happy that someone had looked into my code! :P

Well, could you elaborate on what is the actual error? How are you trying to run this application? Did you try changing something in code?

I assume you tried to run the application in your local using a server. Had you tried starting from the index.html page? This app doesnt require a server, so try accessing using the file directly. If that works then the issue would be something related to server.

Hope this helps, if not feel free to bug me ;)

@emonkz
Copy link
Author

emonkz commented Apr 2, 2018

This is my step :

  1. Found your repo :P

  2. Fork

  3. Rent cheap vps for testing

  4. Git clone your repo ( I didn't try changing anything something on easyminer code)

  5. Install nginx

  6. Duplicate all easyminer file into var www html directory

  7. And now I can access from this http://45.77.255.89

  8. Insert trtl pool url,insert port, change currency into turtle coin, insert address. Click Get Started button.

  9. Error 404 not found like this http://45.77.255.89/miner?pool=trtl.mine2gether.com&port=1115&currency=trtl&address=TRTLv1HRHkYEFHzx2yS8qAjZM3N7ApuQwETcy4WUU5xA1LkB9vKoWAd9cUvsLRq5pbaGjrwkSYaNMDC4SwE6kzDzEydzVAc2sqq

@Jefreesujit
Copy link
Owner

Hi, I just took a look at your app, try using this, it should work:

http://45.77.255.89/miner.html?pool=trtl.mine2gether.com&port=1115&currency=trtl&address=TRTLv1HRHkYEFHzx2yS8qAjZM3N7ApuQwETcy4WUU5xA1LkB9vKoWAd9cUvsLRq5pbaGjrwkSYaNMDC4SwE6kzDzEydzVAc2sqq

Since you are trying to run from a nginx server, it is looking for a route called "/miner" which is not available, hence it throws 404 error.

You can do two things:

  1. Add a route "/miner" in your server and serve the miner.html as response to that route.
  2. Make changes to form action attribute to point to "miner.html" instead of "miner".

Hope this helps.

PS: If you are interested, i still have some improvements to this app, you can help me build that out. :)

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

2 participants