mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
1.2 KiB
1.2 KiB
Dawarich
This is a Rails 7.0.2.3 app template with test suite, user auth and development docker env.
How to rename the app
Run
ruby rename_app.rb old_app_name new_app_name
Notice, the name must be in snake_case. Default app name is dawarich.
How to start the app locally
- Install and start Docker
make buildto build docker image and install all the dependencies (up to 5-10 mins)make setupto install gems, setup database and create test recordsmake startto start the app
Press Ctrl+C to stop the app.
Dockerized with https://betterprogramming.pub/rails-6-development-with-docker-55437314a1ad
Deployment (1st time)
- Set variables in Homelab repo
make dokku_new_appmake dokku_setup_backupsmake dokku_add_domain- Create certificates files in Homelab repo
make dokku_add_ssl- Set SSL/TLS mode to Full in Cloudflare
git remote add dokku dokku@DOKKU_SERVER_UP:APP_NAMEgit push dokku master- Add app.json to the repo:
{
"scripts": {
"predeploy": "dokku ps:stop dawarich"
},
"formation": {
"web": {
"quantity": 1
},
"worker": {
"quantity": 1
}
}
}