rbxb / place

a clone of r/place
GNU General Public License v3.0
84 stars 61 forks source link

Error Not Found #7

Closed SozinV closed 11 months ago

SozinV commented 1 year ago

When connecting to the localhost to test it out it just says Not Found.

rbxb commented 1 year ago

What is the URL that is returning Not Found?

SozinV commented 1 year ago

Not really a URL, the page just says Not Found.

rbxb commented 1 year ago

Which page?

SozinV commented 1 year ago

When I just connect to the local host nothing loads, it just says Not Found.

rbxb commented 1 year ago

When you run the server from the command line make sure that you are running it from the same directory that the directory named "root" is in.

For example:

cd ./rbxb/place/web
place

Alternatively you can set the full filepath of the root directory when you run the server using the -root option. For example:

place -root "C:/place/web/root"

Did this solve it?

SozinV commented 1 year ago

I'm confused, what is place suppose to represent because when I try to use what you put for setting up the root place isn't recognized as a command.

rbxb commented 1 year ago

Place is referring to this go program: https://github.com/rbxb/place/tree/master/cmd/place How were you running the server before?

You can replace "place" in those examples with something like go/bin/place or path to wherever the compiled go program is.

SozinV commented 1 year ago

Okay, I see what you mean by the command -root doesn't work either. I might be that I'm missing something.

rbxb commented 1 year ago

What happens when you use -root with the path to the root directory?

SozinV commented 1 year ago

Like where I do cd "root folder" then use -root?

rbxb commented 1 year ago

Have you done both of these?

  1. Installed the Go Compiler
  2. Compiled place using the Go compiler
SozinV commented 1 year ago

I have installed Go Compiler, then from a video I watched I compiled main.go.

rbxb commented 1 year ago

Do you know the file path of the compiled program? It should be something like "C:/go/bin/place" but it will be different on your device. To run the program you will need to call it from the command line using that path. So you might run it like this:

C:/go/bin/place -root "C:/place/web/root"