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

Show a message with the location of the listening url #8

Closed
wants to merge 2 commits into from

Conversation

minhajuddin
Copy link

No description provided.

@minhajuddin
Copy link
Author

Potential use case: https://news.ycombinator.com/item?id=13021319

@@ -1,4 +1,5 @@
#!/bin/bash
echo "starting server at: http://localhost:8080/"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Um, this should probably be:

PORT="${1:-8080}"
echo "Starting server at: http://localhost:${PORT}/"

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and then also change the variable in line 4

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, didn't see that this was configurable in my excitement

@diamondo25
Copy link

Note that README.md should be changed, because you introduced a new line, making the file 6 lines long

@nir0s
Copy link

nir0s commented Nov 23, 2016

True, true..

@benrady
Copy link
Owner

benrady commented Nov 27, 2016

I can't accept any pull requests that compromise the artistic integrity of this project (as defined by the README)

@benrady benrady closed this Nov 27, 2016
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

Successfully merging this pull request may close these issues.

None yet

4 participants