mirror of
https://github.com/Freika/dawarich.git
synced 2025-12-30 17:59:42 -06:00
c4e00dcf8b6638d519bdf781a4cdfcd16ea5fc43
SoloCustomerTemplate
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 solo_customer_template.
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 solo_customer_template"
},
"formation": {
"web": {
"quantity": 1
},
"worker": {
"quantity": 1
}
}
}
Languages
Ruby
55.8%
JavaScript
33%
HTML
10.1%
CSS
0.9%
Shell
0.1%