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

empirica serve ignoring --addr flag when trying to set alternative port #315

Closed
2 tasks done
malsobay opened this issue Jun 8, 2023 · 0 comments · Fixed by #316 or #317
Closed
2 tasks done

empirica serve ignoring --addr flag when trying to set alternative port #315

malsobay opened this issue Jun 8, 2023 · 0 comments · Fixed by #316 or #317
Labels
bug Something isn't working

Comments

@malsobay
Copy link
Contributor

malsobay commented Jun 8, 2023

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

When using the --addr flag with empirica serve, the parameter is ignored and the server starts on port 3000 anyway.

Steps To Reproduce

  1. Create a new project
  2. Bundle the project with empirica bundle
  3. Try to serve to any port other than 3000, eg by running empirica serve --addr ":3005" bundlename.tar.zst
  4. The app will still be served at localhost:3000

Empirica Version

Version: v1.3.1
SHA:     bce7ea3
Branch:  main
Time:    2023-04-30T08:37:49Z

Client:  1.3.3
Server:  1.3.3

What OS are you seeing the problem on?

macOS, Linux

What browser are you seeing the problem on?

Chrome

Relevant log output

ubuntu@ip-172-31-25-155:~/promptrating_empirica$ empirica serve --addr ":3005" --log.level debug promptrating_empirica.tar.zst
04:01:56.219 INF unbundle: already installed target=/tmp/4cc7bc7ddd230444
04:01:56.222 INF serve: server started
04:01:56.570 DBG server: starting addr=:3000
04:01:56.670 INF empirica: server started

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@malsobay malsobay added the bug Something isn't working label Jun 8, 2023
@malsobay malsobay changed the title empirica serve empirica serve ignoring --addr flag when trying to set alternative port Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant