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

--host,--port and others are not working #2329

Closed
bytedeveloperr opened this issue Oct 13, 2019 · 3 comments
Closed

--host,--port and others are not working #2329

bytedeveloperr opened this issue Oct 13, 2019 · 3 comments

Comments

@bytedeveloperr
Copy link

bytedeveloperr commented Oct 13, 2019

--host ,--port and others are not working

@lonnieezell
Copy link
Member

You know - there was a nice bit of instruction in the template that basically asked for details - well, we really need those details to help you. :)

I use --port all of the time and it works fine for me. To be honest I haven't tried --host recently.

What were you trying (exactly), what happened, etc. What PHP version, OS, etc.

@lonnieezell lonnieezell added this to the 4.0.0-rc.3 milestone Oct 16, 2019
@lonnieezell
Copy link
Member

I just ran some tests and they all work for me on Mac OSX, running PHP 7.2.

  • modified /etc/hosts and added 127.0.0.1 example.local
  • ran php spark serve --host example.local
  • visited web page. It worked as expected.
  • ran php spark serve --port 8083
  • visited localhost:8083. It worked as expected

I did not try the PHP version because I'm lazy and didn't feel like tracking down a path. :) However, these are all just passing variables to PHP's built in web server, so I would expect it to work.

@esternwinluck
Copy link

don't include the equal sign "=" (--port=8081) as the manual says. Use --port 8081

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

No branches or pull requests

3 participants