mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Add details on how to deploy the app
This commit is contained in:
parent
6dbc206ed5
commit
8842ce5a37
1 changed files with 29 additions and 0 deletions
29
README.md
29
README.md
|
|
@ -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.
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue