RoboSats / robosats

A simple and private bitcoin exchange
https://learn.robosats.com
GNU Affero General Public License v3.0
697 stars 135 forks source link

Need help with dev stack install #1458

Open Impa10r opened 6 days ago

Impa10r commented 6 days ago

Describe the bug Having a hard time trying to set up a dev environment following the setup.md instructions.

  1. It says the http server will run on 8080, but it started on 8081.
  2. http://unsafe.testnet.robosats.com does not respond on any port.
  3. http://robosats.onion.moe redirects to http://wordle.ayra.ch:8081/wordle-err.html and displays error: image

robosats.onion.moe:8081 opens Wordle Game

I did redirect robosats.onion.moe:8081/static/frontend/main.js to 127.0.0.1:8081/frontend/main.js, but still get Wordle Game at robosats.onion.moe:8081. Opening robosats.onion.moe:8081/static/frontend/main.js shows js code instead of Not Found, so the redirect definitely works.

If I try to start my own back-end in docker, I get this:

~/src/robosats$ docker-compose up -d
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.backend.environment.DEVELOPMENT contains true, which is an invalid type, it should be a string, number, or a null
services.backend.build.args contains true, which is an invalid type, it should be a string, number, or a null

Desktop (please complete the following information):

Impa10r commented 6 days ago

Update: replaced them with "true", now this:

~/src/robosats$ docker login -u impalor
Password:
Login Succeeded
~/src/robosats$ docker-compose up -d
Pulling telegram-watcher (backend-image:)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling telegram-watcher (backend-image:)...
ERROR: pull access denied for backend-image, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Impa10r commented 6 days ago

But I still need full instructions how to configure the dev backend manually. I cannot build docker every time I add a new line of code. I must be able to debug as I go.