-
-
Save kevsersrca/b2f0ef1f509c632ec7984374c7fa9734 to your computer and use it in GitHub Desktop.
Key parts in deploying a laravel application to dokku: composer.json
This file contains hidden or 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