Skip to content

Instantly share code, notes, and snippets.

@kn9ts
Created June 1, 2015 16:42
Show Gist options
  • Save kn9ts/eae1107bfb03156c2aa7 to your computer and use it in GitHub Desktop.
Save kn9ts/eae1107bfb03156c2aa7 to your computer and use it in GitHub Desktop.
Key parts in deploying a laravel application to dokku: composer.json
{
"scripts": {
"post-install-cmd": [
"php artisan optimize",
"chmod -Rvc 777 app/storage",
"chmod -R 777 public",
"php artisan cache:clear",
"php artisan migrate"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"extra": {
"heroku": {
"framework": "silex",
"document-root": "public",
"index-document": "index.php"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment