Skip to content

Commit

Permalink
Added Heroku App.Json template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Lawrence committed Apr 21, 2018
1 parent 61f8b3e commit 87e56f7
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 2 deletions.
80 changes: 80 additions & 0 deletions app.json
@@ -0,0 +1,80 @@
{
"name": "laravel-heroku-template",
"description": "A useful laravel template.",
"scripts": {
"postdeploy": "php artisan postdeploy:heroku"
},
"env": {
"APP_DEBUG": "true",
"APP_ENV": "development",
"APP_KEY": {
"required": true
},
"APP_LOG": "errorlog",
"APP_LOG_LEVEL": "error",
"BROADCAST_DRIVER": "redis",
"CACHE_DRIVER": "redis",
"DB_CONNECTION": "mysql",
"FILESYSTEM_DRIVER": "local",
"MAIL_DRIVER": "smtp",
"MAIL_ENCRYPTION": "tls",
"MAIL_FROM_ADDRESS": "team@localhost.com",
"MAIL_FROM_NAME": "team@localhost.com",
"MAIL_HOST": {
"required": true
},
"MAIL_PASSWORD": {
"required": true
},
"MAIL_PORT": {
"required": true
},
"MAIL_USERNAME": {
"required": true
},
"NEXMO_KEY": {
"required": true
},
"NEXMO_SECRET": {
"required": true
},
"QUEUE_DRIVER": "sync",
"RESPONSE_CACHE_ENABLED": "true",
"RESPONSE_CACHE_DRIVER": "redis",
"SENDGRID_PASSWORD": {
"required": true
},
"SENDGRID_USERNAME": {
"required": true
},
"SESSION_DRIVER": "redis"
},
"formation": {
"web": {
"quantity": 1,
"size": "free"
},
"queue": {
"quantity": 1,
"size": "free"
}
},
"buildpacks": [
{
"url": "heroku/php"
},
{
"url": "heroku/nodejs"
}
],
"addons": [
{
"plan": "heroku-redis:hobby-dev",
"as": "REDIS"
},
{
"plan": "jawsdb-maria:kitefin",
"as": "DATABASE"
}
]
}
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -11,7 +11,8 @@
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.6.*",
"laravel/tinker": "^1.0"
"laravel/tinker": "^1.0",
"spatie/laravel-responsecache": "^4.2"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^2.4",
Expand Down
71 changes: 70 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87e56f7

Please sign in to comment.