Catalog npm
Back to packageRELEASE DETAILS

1.4.6

npm

@0x4447/hotpepper

🌶 A SystemD config generators for NodeJS projects

0x4447cliservicesystemd
Published29 Jan 2018
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

🌶 Hot Pepper

We created Hot Pepper to quickly add a NodeJS server to SystemD by setting up a custom configuration file based on the content of the package.json file and the location in which the CLI was executed.

We prefer to use SystemD, because it's built into Debian, takes care of the lifetime of the process, and uses fewer resources than other solutions on today's market. Thus, you get more CPU and RAM for your app. Not to mention that the entire server will be set to Auto Start. This way, all the servers added to SystemD are always ready when you start your server/computer.

In addition, you'll save time because you won't be hand-creating a .service for the dozens of micro services within a given project.

How to install

] sudo npm install -g @0x4447/hotpepper

How to use

] sudo hotpepper -s .

Where to get help

] hotpepper -h

What to Expect

Run the command in the directory that contains your project. If all necessary data is present in the package.json file, the tool...

  • Generates a .service file saved in the correct SystemD directory
  • The app forces SystemD to reload the service files
  • The app starts your server
  • The app tells SystemD to start your server every time the system boots

Sample of a .service file:

[Unit]
Description=example.com
Documentation=https://github.com/user/example.com
After=network.target

[Service]
EnvironmentFile=/home/admin/example.com/.env
Type=simple
User=admin
Group=admin
WorkingDirectory=/home/admin/example.com
ExecStart=/usr/bin/node bin/server
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=example.com
Restart=on-failure
RestartSec=3
KillMode=process
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

Once complete, the app lets you know whether the process was successful.

Where are the logs?

Run this command to view the server logs: sudo tail -f /var/log/syslog. Each log entry has the name of the project attached.

The End

If you enjoyed this project, please consider giving it a 🌟. And check out our 0x4447 GitHub account, which contains additional resources you might find useful or interesting.

Sponsor 🎊

This project is brought to you by 0x4447 LLC, a software company specializing in building custom solutions on top of AWS. Follow this link to learn more: https://0x4447.com. Alternatively, send an email to hello@0x4447.email.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
4.1.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-tXW73qTfeAN71/UEsBmqv112AV7iykP7maaEI0nTqUYHExkpZdhhgw5dIP2sV40ySPwa5ZYf7FcPeDwZ1V7GWw==",
  "shasum": "a10b19a436bd100dbd8a7a085f8b3529af02843a",
  "tarball": "https://registry.npmjs.org/@0x4447/hotpepper/-/hotpepper-1.4.6.tgz",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQD1MMnmXEvT4zGK3ehrXjW6LcmTgEqLbsp/NCtMPHw4ZQIhANA504WC4fBqmTrho14WTf7RgLzHI48Boa7HyE3jfZxF"
    }
  ]
}

Repository

PENDING
0x4447/0x4447-node-cli-hot-pepper

Shared repository data · GitHub

License detected in repository
Not collected

Repository

NOT_FOUND
0x4447/0x4447-cli-node-hotpepper

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:35 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:5cffd0bbb6eb12236bc3c3c5b4a9fa710ee9539fbb2c19db405bbdda65193373

Other collected versions

2.0.08 Feb1.4.171 Jul1.4.1624 Jun1.4.1523 Jun1.4.1321 Jun1.4.1221 JunView all collected versions →