Skip to content

Firefly III: a personal finances manager

Deploy heroku database. [skip ci]

James Colefc0dd227695f
diff --git a/.env.heroku b/.env.heroku
new file mode 100755
index 0000000000..4e43d927b5
--- /dev/null
+++ b/.env.heroku
@@ -0,0 +1,56 @@
+APP_ENV=production
+APP_DEBUG=false
+APP_FORCE_SSL=false
+APP_FORCE_ROOT=
+APP_KEY=SomeRandomStringOf32CharsExactly
+APP_LOG=errorlog
+APP_LOG_LEVEL=debug
+APP_URL=http://localhost
+
+DB_CONNECTION=sqlite
+DB_HOST=127.0.0.1
+DB_PORT=3306
+DB_USERNAME=homestead
+DB_PASSWORD=secret
+
+BROADCAST_DRIVER=log
+CACHE_DRIVER=file
+SESSION_DRIVER=file
+QUEUE_DRIVER=sync
+
+COOKIE_PATH="/"
+COOKIE_DOMAIN=
+COOKIE_SECURE=false
+
+REDIS_HOST=127.0.0.1
+REDIS_PASSWORD=null
+REDIS_PORT=6379
+
+MAIL_DRIVER=smtp
+MAIL_HOST=mailtrap.io
+MAIL_PORT=2525
+MAIL_USERNAME=null
+MAIL_PASSWORD=null
+MAIL_ENCRYPTION=null
+
+SEND_REGISTRATION_MAIL=true
+SEND_ERROR_MESSAGE=true
+SHOW_INCOMPLETE_TRANSLATIONS=false
+
+CACHE_PREFIX=firefly
+
+EXCHANGE_RATE_SERVICE=fixerio
+
+GOOGLE_MAPS_API_KEY=
+ANALYTICS_ID=
+USE_ENCRYPTION=true
+
+PUSHER_KEY=
+PUSHER_SECRET=
+PUSHER_APP_ID=
+
+DEMO_USERNAME=
+DEMO_PASSWORD=
+
diff --git a/composer.json b/composer.json
index 171b09a51c..79faacd4d1 100755
--- a/composer.json
+++ b/composer.json
@@ -106,6 +106,11 @@
"php artisan firefly:verify",
"php artisan firefly:instructions update",
"php artisan optimize"
+ ],
+ "compile": [
+ "cp .env.heroku .env",
+ "touch storage/database/database.sqlite",
+ "php artisan migrate:refresh --seed"
]
},
"config": {
diff --git a/config/database.php b/config/database.php
index 451ffd9741..52a0cd0494 100644
--- a/config/database.php
+++ b/config/database.php
@@ -12,7 +12,7 @@
return [
'fetch' => PDO::FETCH_OBJ,
- 'default' => env('DB_CONNECTION', 'mysql'),
+ 'default' => env('DB_CONNECTION', 'sqlite'),
'connections' => [
'sqlite' => [
'driver' => 'sqlite',