pockethost/development.md
2022-10-13 06:14:49 +00:00

882 B

Developer instructions

Deployment

Clone

git clone git@github.com:benallfree/pockethost.git
cd pockethost

Build custom PockeBase

cd packages/pocketbase
yarn build

Build daemon

cd packages/daemon
yarn build

Build web app

cd packages/pockethost.io
cp .env-template .env
nano .env

Edit vars as needed

yarn build

Prepare Docker

cd docker
cp .env.template .env
nano .env

Edit APP_DOMAIN and CORE_PB_PASSWORD (needed by daemon)

Ensure that your ssl files are present there.

cd ../docker
ls ssl
sudo certbot --server https://acme-v02.api.letsencrypt.org/directory -d *.pockethost.io -d pockethost.io --manual --preferred-challenges dns-01 certonly
nano nginx-conf/nginx.conf

Edit as needed

Run

sudo docker-compose up