Better check for Heroku [skip ci]

This commit is contained in:
James Cole 2017-12-15 11:15:22 +01:00
parent 1b116e3a1d
commit c3af8fefde
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -98,7 +98,7 @@
}, },
"scripts": { "scripts": {
"pre-install-cmd": [ "pre-install-cmd": [
"if DYNO -gt 0; then @php -r \"file_exists('.env') || copy('.env.heroku', '.env');\"; else echo Not in Heroku environment.; fi" "if [ -z ${DYNO+x} ]; then @php -r \"file_exists('.env') || copy('.env.heroku', '.env');\"; else echo Not in Heroku environment.; fi"
], ],
"post-root-package-install": [ "post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""