mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
Self-hostable alternative to Google Location History (Google Maps Timeline)
| .github/workflows | ||
| app | ||
| bin | ||
| config | ||
| db | ||
| lib | ||
| log | ||
| public | ||
| spec | ||
| storage | ||
| test | ||
| tmp | ||
| vendor | ||
| .env.development | ||
| .env.test | ||
| .gitattributes | ||
| .gitignore | ||
| .rspec | ||
| .rubocop.yml | ||
| .ruby-version | ||
| app.json | ||
| config.ru | ||
| dev-docker-entrypoint.sh | ||
| docker-compose.yml | ||
| Dockerfile.dev | ||
| Gemfile | ||
| Gemfile.lock | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| Procfile | ||
| Procfile.dev | ||
| Rakefile | ||
| README.md | ||
| rename_app.rb | ||
| test-docker-entrypoint.sh | ||
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
}
}
}