decentraland / bronzeage-node

DEPRECATED: This codebase will not be mantained anymore, and formats are going to change when we move to the Decentraland Iron Age
https://decentraland.org
Other
104 stars 22 forks source link

windows batch files broken #84

Open heavenly opened 7 years ago

heavenly commented 7 years ago

'.' is not recognized as an internal or external command, operable program or batch file. '--fast' is not recognized as an internal or external command, operable program or batch file. '--loglevel' is not recognized as an internal or external command, operable program or batch file. '--port' is not recognized as an internal or external command, operable program or batch file. '--httpport' is not recognized as an internal or external command, operable program or batch file. '--contentport' is not recognized as an internal or external command, operable program or batch file. '--prefix' is not recognized as an internal or external command, operable program or batch file. '--n' is not recognized as an internal or external command, operable program or batch file. '--apikey' is not recognized as an internal or external command, operable program or batch file. '--startminer' is not recognized as an internal or external command, operable program or batch file.

Looks like the windows files are broken. ran start.bat and this happened.

Rajatapaus commented 7 years ago

Your console directory needs to be on the bronzeage-node directory. There you can start it by running this command: bin\start.bat

If you want to start start.bat file from anywhere, you need to edit it's contents as such:

@ECHO OFF

setlocal
for %%P in (%PATHEXT%) do (
    if exist "%%~$PATH:node.exe" (
      start "server" %%~$PATH:node.exe ./browser/server.js --apikey %RPC_API_KEY% --serverport %SERVER_PORT% --daemon
      GOTO next
    )
  )
)

:next

%~dp0/decentraland-node \
  --fast \
  --loglevel=info \
  --port=2301 \
  --httpport=8301 \
  --contentport=9301 \
  --prefix="data" \
  --n=testnet \
  --apikey=%RPC_API_KEY% \
  --startminer=%START_MINER%

Replace the contents of the start.bat file with the contents above.

Note that you still need to replace %RPC_API_KEY% with an API key of your choosing, for example: "test1234"

Please report if you encounter any further issues.