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

Add -d, --detach to nikola serve #1871

Merged
merged 1 commit into from Jul 10, 2015
Merged

Add -d, --detach to nikola serve #1871

merged 1 commit into from Jul 10, 2015

Conversation

@Kwpolska
Copy link
Member

@Kwpolska Kwpolska commented Jul 8, 2015

This is a clone of jekyll serve --detach. The feature will return control to your terminal immediately, letting you work on your website with the server running in the background. This is accomplished by
forking right before the server is initialized. All log messages are discarded.

$ nikola serve -d
[2015-07-08T08:20:25Z] INFO: serve: Serving HTTP on 0.0.0.0 port 8000...
[2015-07-08T08:20:25Z] INFO: serve: Detached with PID 14594. Run `kill 14594` to stop the server.

This is functionally equivalent to nikola serve 2> /dev/null &, but is shell-independent and easier to type.

@Kwpolska Kwpolska added this to the v7.6.1 milestone Jul 8, 2015
This is a clone of `jekyll serve --detach`.  The feature will return
control to your terminal immediately, letting you work on your website
with the server running in the background.  This is accomplished by
forking right before the server is initialized. All log messages are
discarded.

    $ nikola serve -d
    [2015-07-08T08:20:25Z] INFO: serve: Serving HTTP on 0.0.0.0 port 8000...
    [2015-07-08T08:20:25Z] INFO: serve: Detached with PID 14594. Run `kill 14594` to stop the server.

This is functionally equivalent to `nikola serve 2> /dev/null &`, but
is shell-independent and easier to type.

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Kwpolska added a commit that referenced this issue Jul 10, 2015
Add -d, --detach to nikola serve
@Kwpolska Kwpolska merged commit fe52de9 into master Jul 10, 2015
@Kwpolska Kwpolska deleted the serve-detach branch Jul 10, 2015
@Kwpolska
Copy link
Member Author

@Kwpolska Kwpolska commented Jul 10, 2015

Merged due to no response in 2 days.

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

Successfully merging this pull request may close these issues.

None yet

1 participant