easoncxz / twitanalysis

Dig your Twitter data
https://easoncxz.github.io/twitanalysis
Other
1 stars 0 forks source link

Deploy the app on Vultr #9

Closed easoncxz closed 3 years ago

easoncxz commented 4 years ago

There are a few necessary steps:

This ticket can wait for a bit, since it's heavy-handed Ops work, possibly involving tonnes of new tools I've never touched, and will need lots of time. Things like Ansible or Terraform may be of use.

Helpful guides

Points of care

easoncxz commented 3 years ago

I just did a bunch of stuff manually.

On my DNS provider:

On my Vultr box over SSH:

And now things appear to be working:

image

Notice that the domain name is a live one, and the little SSL lock icon is showing no errors.

Follow this wiki:

easoncxz commented 3 years ago

I've written an almost-one-click deploy script, which is intended to be run from a controlling machine, usually local-dev, but also potentially a Github Actions runner container:

The next step is to come up with some slightly more polished way of keeping the server running, with some command that is ideally like systemctl reload nginx: one-click, and pre-daemonised.

About SSH deploys from Github Actions:

About managing long-running processes using systemd:

easoncxz commented 3 years ago

Several critical commits:

easoncxz commented 3 years ago

New episode at: