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

Please make port configurable. #226

Closed
berndca opened this issue Aug 19, 2015 · 7 comments
Closed

Please make port configurable. #226

berndca opened this issue Aug 19, 2015 · 7 comments
Assignees

Comments

@berndca
Copy link

berndca commented Aug 19, 2015

Eve run on port 8080. This is a rather popular port. Please provide an option to run eve on a different port. This could be configured in a file or perhaps a command line parameter could be added to run.sh.

It would also be helpful to have the option to just start the Eve server instead of launching the default browser (would fix #203). My default browser is firefox which complains about the script index.js to hang at line 146 when I try to create a query. I have not been able to open the editor in chrome. This issue appears to be related to websockets.

@joshuafcole
Copy link
Contributor

Yeah, we need to add a port flag and update the server to pull the port from an environment variable. The option to start without launching the editor already exists as the --restart flag, but that may not be the most obvious name for it.

@cmontella
Copy link
Contributor

You can also start the server alone by just running the server binary. In the runtime directory, run:

cargo run --bin server --release

@berndca
Copy link
Author

berndca commented Aug 19, 2015

I ran
cd runtime
cargo run --bin server --release

It compiles and the last few lines output read
Running target/release/server
Warning, cannot migrate state for: "d602bc17-f092-4afd-8909-bacf2e6f2597"
Warning, cannot migrate state for: "4f8d2632-6395-4f94-b2b6-2aa0567fcf97"
Warning, cannot migrate state for: "4f8d2632-6395-4f94-b2b6-2aa0567fcf97"
Warning, cannot migrate state for: "4f8d2632-6395-4f94-b2b6-2aa0567fcf97"
Warning, cannot migrate state for: "4f8d2632-6395-4f94-b2b6-2aa0567fcf97"
Warning, cannot migrate state for: "92afc227-7144-48ca-8e6c-00f5e0fdf345"
Warning, cannot migrate state for: "372043ef-09fe-4189-88cc-22c504bb89ad"
Warning, cannot migrate state for: "372043ef-09fe-4189-88cc-22c504bb89ad"
reading saved state took 0.5880601200042292s

However I do not seem to be able to connect. Both browsers I tried (Chrome and Firefox on Linux - Elementary Freya 64 bit) show an empty page and seem to be busy executing a script until the browser offers to kill the unresponsive script.

cmontella referenced this issue Aug 19, 2015
--faddress (allows you to specify a socket address for the static file
server)
@cmontella
Copy link
Contributor

I've added the ability to specify port for the static file server... As for your issue, we've seen this in the past, and it was a bug in rust's hyper library (hyperium/hyper#368). I'm opening an issue for this bug in case others come across it.

Can you tell us what script it's hanging on? In Chrome, just open the dev panel and go to Network, it should tell you which script hasn't loaded. Thanks!

@berndca
Copy link
Author

berndca commented Aug 19, 2015

All scripts seem to load. The request which hangs is for root ('', localhost:2794, plain, 0B). 14 javascript files have been loaded before successfully.

The browser seems to get stuck at indexer.ts, line 132.

There is also a console message "slow parse (> 5 ms)" caused by client.ts:150

@joshuafcole
Copy link
Contributor

Try deleting the autosave file located in runtime/autosave

On Wed, Aug 19, 2015 at 4:53 PM, Bernd Meyer [email protected]
wrote:

All scripts seem to load. The request which hangs is for root ('',
localhost:2794, plain, 0B). 14 javascript files have been loaded before
successfully.

The browser seems to get stuck at indexer.ts, line 132.

There is also a console message "slow parse (> 5 ms)" caused by
client.ts:150


Reply to this email directly or view it on GitHub
#226 (comment).

Screw the environment. Please print this email immediately. And then burn
it.

@berndca
Copy link
Author

berndca commented Aug 20, 2015

Thanks, the site is loading. The data previously entered, when I worked through the tutorial is gone. This is probably expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants