Created
June 1, 2015 16:42
-
-
Save kn9ts/eae1107bfb03156c2aa7 to your computer and use it in GitHub Desktop.
Key parts in deploying a laravel application to dokku: composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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