Feature: Deploy & SSL #404
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There's a new branch
deploy
.deploy
branch is used in CI/CD workflows to automatically deploy/redeploy changes to DigitalOcean droplets.deploy
.nc-multiplex
andnetcreate-deploy-do
repos to manage deployments.deploy
branch is protected and cannot be deleted.netcreate-deploy-do
in thev0.4
branch caf40d4New Features
client-network.js
now supports secure web sockets. Ifhttps
is detected in the URL, then websocket traffic is now directed towss://<url>/ws_port/<port>
instead ofws://<url>:<port>
.nc-multiplex
in thedeploy
branch #18.Fixes
npm run package
fixesnpm run package
had been broken -- if you runpackage
on a first install without first runningnc.js
, theapp-config/netcreate-config.js
would be missing and no default template would be available inruntime/_default.template.toml
. This would result in a silent failure duringpackage
, and the code would not be compiled. Trying to runnc-multiplex
after this would result in broken graphs (telltale error: missing Net.Create logo).init-netcreate-config.js
that will create anetcreate-config.js
file and copy the default template to theruntime
folder. This essentially emulates the behavior of thenc.js
script in a non-blocking manner so the rest of the deployment process can run unattended. This script is run by the newstart-nc-multiplex-ssl.sh
script. See #18.UDB.WriteDbJSON
calls inbrunch-config.js
. These were ancient calls that were used to create databases from JSON definitions, but it assumed an existing.loki
file. Since a.loki
file does not exist in a first run, the call would fail and the rest of the compilation process would stop prematurely. This probably should be reviewed and removed eventually.This is based on the working
dev-dhi
branch: 99e4897