README.md 906 Bytes
Newer Older
1
# Site.js Provisioning Spike
2

3
Creates a [cloud-init](https://cloud-init.io/) script to launch a server running Ubuntu 18.04LTS (local testing implemented via multipass) with Node latest LTS with Site.js running on port 433. Creates and unprivileged sudoer account _me_.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

### Usage

#### Create the server:

```bash
./create.sh
```

#### Destroy the server:

```bash
./destroy.sh
```

#### Miscellaneous activities

  * List servers (and find out their IP address): `multipass ls`
  * SSH into server: `ssh indie@<IP ADDRESS>`
  * Within server, view cloud-init log: `cat /var/log/cloud-init-output.log`
24
  * Within server, use Site.js command-line app. e.g., `site logs`, `site status`, etc. See `site help` for the full list of commands.
25

26
The work here dates back to my very spike for the Hypha project. See this [blog post](https://ar.al/2019/01/05/hypha-spike-deployment-1/#cloud-init) for more details.