![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Quick Node.js hosting on ubuntu:
As the user that should be the administrator of the hosting:
# Install Node.js if needed
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && sudo apt-get install -y nodejs
npm install -g node-host
nodehost setup /hosting/dir --install-dependencies
Where /hosting/dir
is where you want the hosts to reside on the server, for example /var/www
.
(If you cannot use install -g
with a non-root user, check out how to fix the npm permissions.)
nodehost help
nodehost <command> [options...]
Use nodehost create <yourdomain.com>
to create hosts, point the domain to the server, and you have a Node application up and running in less than a minute!
After creating a host, example.com
will have some points of interest:
/hosting/dir/example.com
/hosting/dir/example.com/example.com
/hosting/dir/example.com/www
/hosting/dir/example.com/www/public
Default behavior for the service execution file is to start nodemon for an app.js
file in the www
dir. Change the content as suited, but don't change the filename, since systemd depends on it.
Other useful locations for nodehost itself:
/etc/nginx/nodehost.conf.json
- configuration file, created during setup/etc/nginx/sites-available/nodehost*.conf
- nginx files for each host/etc/systemd/system/nodehost*.service
- systemd files for each hostnodehost edit-nginx <yourdomain.com>
to see details for generating either a self-signed certificate, or a real one with certbot
. Note that only nginx is using the cert, the proxied connection between nginx and the Node app is http only (because they're on the same server).
Until an uninstall command is in place:
nodehost remove <hostname>
for all hosts/etc/nginx/nodehost.conf.json
/hosting/dir
As the user that should be the administrator of the hosting:
# Install Node.js if needed
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && sudo apt-get install -y nodejs
# Install Haxe if needed
sudo add-apt-repository ppa:haxe/releases -y
sudo apt-get update
sudo apt-get install haxe -y
mkdir ~/haxelib && haxelib setup ~/haxelib
# Clone the repo
git clone https://github.com/ciscoheat/nodehost.git && cd nodehost
# First time build
npm install
haxelib install nodehost.hxml
npm run build && npm link
# Setup
nodehost setup /hosting/dir --install-dependencies
Or if you have vagrant installed, do all of the above automatically with vagrant up
. :)
npm run build
FAQs
Simple node.js hosting on debian/ubuntu with nginx.
The npm package node-host receives a total of 0 weekly downloads. As such, node-host popularity was classified as not popular.
We found that node-host demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.