Add details on how to deploy the app

This commit is contained in:
Eugene Burmakin 2023-05-28 12:52:13 +02:00
parent 6dbc206ed5
commit 8842ce5a37

View file

@ -23,3 +23,32 @@ Notice, the name must be in snake_case. Default app name is `solo_customer_templ
Press `Ctrl+C` to stop the app. Press `Ctrl+C` to stop the app.
Dockerized with https://betterprogramming.pub/rails-6-development-with-docker-55437314a1ad Dockerized with https://betterprogramming.pub/rails-6-development-with-docker-55437314a1ad
## Deployment (1st time)
0. Set variables in Homelab repo
1. `make dokku_new_app`
2. `make dokku_setup_backups`
3. `make dokku_add_domain`
4. Create certificates files in Homelab repo
5. `make dokku_add_ssl`
6. Set SSL/TLS mode to Full in Cloudflare
7. `git remote add dokku dokku@DOKKU_SERVER_UP:APP_NAME`
8. `git push dokku master`
9. Add app.json to the repo:
```json
{
"scripts": {
"predeploy": "dokku ps:stop solo_customer_template"
},
"formation": {
"web": {
"quantity": 1
},
"worker": {
"quantity": 1
}
}
}
```