- This topic has 2 replies, 2 voices, and was last updated 12 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Integrated Application Platform
Integrated Application Platform › Forums › General › Trying to set up a client server
Now that I have my application pretty much done, I am trying to set it up to run as a server. I created the server.go file containing
Use(“ssb”); ssb is the lib name.
I try to start suneido from the command line by typing
suneido -server server.go
It looks like it starts to load then I get an error popup saying
error evaluating: server.go
(uninitialized variable: server)
Thanks again for all your help
Benny
That all sounds correct.
If you look at the code at the end of Init you can see what it does:
if false is s = GetFile(args)
s = args
s.Eval()
args in your case should be “server.go”
It sounds like GetFile is failing and it is trying to Eval “server.go”
You can run the above code (or just GetFile) from the WorkSpace and see what you get.
Are you sure you’re typing the file name correctly, and that it’s in the current directory?
Thanks. I got it working. The prob was in the file name. when I saved the text file, it saved as server.go.txt. Once I corrected that, it started up no prob.
Benny