App running in background, reliably and debuggable

Open
#138 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
node.js, shell, ubuntu

Research direction

No repository file, test, or entry point is mentioned; first clarify whether this issue is intended to change Scripting-News or document a deployment workflow. It is done only after a concrete scope, implementation location, and verification steps are agreed.

Written by the indexing model from the issue text.

Description

I am working on a Node app that must:

  1. run in the background,

  2. disconnected from the terminal,

  3. survives the terminal window being closed,

  4. yet is easy to quit so I can run a new version.

The product will remain in active development at the same time it is deployed, for the foreseeable future.

It's running on Ubuntu 18.04.3 (LTS) x64 on digitalocean.com.

I am currently using nohup node appname.js & to launch the app, and killAll node, to terminate it, and the apps it launches.

This method seems pretty good. I am able to Control-C after launching the app and it keeps running in the background. It seems to survive closing the terminal and logging on again.

Curious to know what other devs think? What method do you use to launch and kill an app in the background when you're actively developing it?

Dominant language
HTML
Stars
134
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scripting/Scripting-News

All issues in scripting/Scripting-News

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.