OpenHospitalityNetwork / fedi-trustroots

Next generation federated hospitality exchange platform
https://openHospitality.network
GNU Affero General Public License v3.0
23 stars 3 forks source link

Github Action to deploy to Digital Ocean on every push to master #90

Closed mariha closed 2 years ago

mariha commented 2 years ago

I've added secrets to the repo (host, user, private key) to login to Digital Ocean (which has corresponding public key in .ssh/authorized_keys)

the host it's currently deployed to is https://dev.refugees.openHospitality.network

mariha commented 2 years ago

The workflow did run but there is no fedi-trustroots repo where it logged in.

So I use root for that... I wander if you think I'd rather use some other user? Where would be best place to clone the repo? I logged in on that box and could see there is ft.tar.gz so I guess you've used that instead of clone?

weex commented 2 years ago

I didn't use the root user, but dsterry. If you su - dsterry then tmux attach you'll be in a tmux session and can see the two processes running. Ctrl-space then n cycles through them. The directory for the code is /var/www/{domain-name}/ft

ft.tar.gz was a snapshot of what was running on the demo before and I copied that over, then pulled and reset to bring it up to the current state. The only final adjustment was to config/env/local.js to set the domain name and name of the site.

mariha commented 2 years ago

ok, thanks!