degit parkerbedlan/sveltekit-prisma-socket-template
npm i
_.env
and _.env.local
as described by the comments in the files.prisma/schema.prisma
to your liking and then run npx prisma generate
and npx prisma migrate dev
npm run dev
setup_dokku.bat
and walk through its instructions.deploy.bat
(which gets generated when you run setup_dokku.bat
)_.env.production
as described by the comment in the file.my-domain.com
) and create an A Record
directed towards the <server-ip-address>
of the Dropletssh root@<server-ip-address>
dokku apps:create <app-name>
dokku domains:set <app-name> my-domain.com
dokku proxy:ports-set <app-name> http:80:8080
dokku postgres:create <app-name>-db
dokku postgres:link <app-name>-db <app-name>
# *Deploy to the server* (instructions below)
dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git
dokku letsencrypt:enable <app-name> # this automatically sets https:443:8080 if it works
npm run build
docker build -t <dockerhub-username>/<repo-name>:<tag-name> .
docker push <dockerhub-username>/<repo-name>:<tag-name>
ssh root@<server-ip-address>
docker pull <dockerhub-username>/<repo-name>:<tag-name>
dokku git:from-image <app-name> <dockerhub-username>/<repo-name>:<tag-name>