mirror of https://github.com/kcal-app/kcal.git
Remove Heroku stuff
This commit is contained in:
parent
d77dba0468
commit
b9717a9961
32
README.md
32
README.md
|
@ -181,38 +181,6 @@ at [kcalapp/kcal](https://hub.docker.com/repository/docker/kcalapp/kcal) on Dock
|
||||||
See the [kcal-app/kcal-docker](https://github.com/kcal-app/kcal-docker) repository
|
See the [kcal-app/kcal-docker](https://github.com/kcal-app/kcal-docker) repository
|
||||||
for a Docker Compose based template and instructions.
|
for a Docker Compose based template and instructions.
|
||||||
|
|
||||||
### Heroku
|
|
||||||
|
|
||||||
[](https://heroku.com/deploy)
|
|
||||||
|
|
||||||
The default username and password for a Heroku deployment is `kcal`/`kcal`.
|
|
||||||
|
|
||||||
#### Using Heroku CLI
|
|
||||||
|
|
||||||
For a manual deploy using Heroku CLI, execute the following after initial deployment:
|
|
||||||
|
|
||||||
heroku run php artisan migrate
|
|
||||||
heroku run php artisan user:add
|
|
||||||
heroku config:set APP_KEY=$(php artisan --no-ansi key:generate --show)
|
|
||||||
|
|
||||||
#### Media storage
|
|
||||||
|
|
||||||
Heroku uses an ephemeral disk. In order to maintain recipe and/or user images between
|
|
||||||
app restarts AWS can be used. See [Media Storage - AWS S3](#aws-s3) for additional
|
|
||||||
guidance.
|
|
||||||
|
|
||||||
#### Search drivers
|
|
||||||
|
|
||||||
See the [Search](#search-mag) section for information about supported drivers. Additional
|
|
||||||
environment variable configuration is necessary when using any search driver other
|
|
||||||
than the default ("null").
|
|
||||||
|
|
||||||
#### Redis Add-on
|
|
||||||
|
|
||||||
The [Heroku Redis](https://elements.heroku.com/addons/heroku-redis) add-on can be
|
|
||||||
added to the app and will work without any configuration changes. It is left out
|
|
||||||
of the default build only because it takes a very long time to provision.
|
|
||||||
|
|
||||||
### Manual
|
### Manual
|
||||||
|
|
||||||
This deployment process has been tested with an Ubuntu 20.04 LTS instance with
|
This deployment process has been tested with an Ubuntu 20.04 LTS instance with
|
||||||
|
|
71
app.json
71
app.json
|
@ -1,71 +0,0 @@
|
||||||
{
|
|
||||||
"name": "kcal – the personal food nutrition journal",
|
|
||||||
"description": "Self-hostable web app for food and recipe nutrition tracking.",
|
|
||||||
"keywords": [
|
|
||||||
"cooking",
|
|
||||||
"fitness",
|
|
||||||
"food",
|
|
||||||
"heath",
|
|
||||||
"laravel",
|
|
||||||
"nutrition",
|
|
||||||
"php",
|
|
||||||
"recipes",
|
|
||||||
"self-host"
|
|
||||||
],
|
|
||||||
"repository": "https://github.com/kcal-app/kcal",
|
|
||||||
"website": "https://github.com/kcal-app/kcal",
|
|
||||||
"buildpacks": [
|
|
||||||
{
|
|
||||||
"url": "heroku/php"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"addons": [
|
|
||||||
"heroku-postgresql"
|
|
||||||
],
|
|
||||||
"env": {
|
|
||||||
"APP_KEY": {
|
|
||||||
"description": "Used for the auth system.",
|
|
||||||
"generator": "secret"
|
|
||||||
},
|
|
||||||
"APP_TIMEZONE": {
|
|
||||||
"description": "Application time zone.",
|
|
||||||
"value": "Etc/UTC"
|
|
||||||
},
|
|
||||||
"DB_CONNECTION": {
|
|
||||||
"description": "Database driver.",
|
|
||||||
"value": "pgsql"
|
|
||||||
},
|
|
||||||
"SCOUT_DRIVER": {
|
|
||||||
"description": "Search driver ('algolia', 'elastic', or 'null').",
|
|
||||||
"value": "null"
|
|
||||||
},
|
|
||||||
"MEDIA_DISK": {
|
|
||||||
"description": "Media disk. Set to 's3-public' for recipe/user image support.",
|
|
||||||
"value": "local"
|
|
||||||
},
|
|
||||||
"AWS_BUCKET": {
|
|
||||||
"description": "AWS bucket name for recipe/user image storage. Required when MEDIA_DISK is 's3-public'.",
|
|
||||||
"value": "",
|
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
"AWS_DEFAULT_REGION": {
|
|
||||||
"description": "AWS region for AWS_BUCKET. Required when MEDIA_DISK is 's3-public'.",
|
|
||||||
"value": "",
|
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
"AWS_ACCESS_KEY_ID": {
|
|
||||||
"description": "AWS access key ID for AWS_BUCKET. Required when MEDIA_DISK is 's3-public'.",
|
|
||||||
"value": "",
|
|
||||||
"required": false
|
|
||||||
},
|
|
||||||
"AWS_SECRET_ACCESS_KEY": {
|
|
||||||
"description": "AWS secret key ID for AWS_ACCESS_KEY_ID. Required when MEDIA_DISK is 's3-public'.",
|
|
||||||
"value": "",
|
|
||||||
"required": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"postdeploy": "php artisan migrate --force && php artisan user:add kcal kcal --name=Admin --admin"
|
|
||||||
},
|
|
||||||
"success_url": "/"
|
|
||||||
}
|
|
Loading…
Reference in New Issue