From 44933819808fc178f9d946b714cf2f308427eb10 Mon Sep 17 00:00:00 2001 From: Bekir Eldem Date: Tue, 20 Mar 2018 13:03:52 +0300 Subject: [PATCH] Test branch1 at last (#3) * update the readme * update app.json * update app.json * update app.json * update app.json * update app.json * Update app.json * update database config * Update app.json * Update app.json * Update deploy.sh * Update deploy.sh --- app.json | 22 ++++++++++++++++++---- bin/deploy.sh | 2 +- config/database.php | 18 ++++++++++++++---- readme.md | 2 ++ resources/views/sleep.blade.php | 4 +--- 5 files changed, 36 insertions(+), 12 deletions(-) diff --git a/app.json b/app.json index e34154d..a5e755a 100644 --- a/app.json +++ b/app.json @@ -5,15 +5,29 @@ "postdeploy": "bin/deploy.sh" }, "env": { + "APP_DEBUG": { + "description": "xxx.", + "value": "true" + }, + "APP_LOG_LEVEL": { + "description": "xxx.", + "value": "debug" + }, + "APP_KEY": { + "description": "xxx.", + "value": "base64:7gPm4ka5+PrZA/bBiECersWKuG+wmmQC56uV0PJOhSM=" + }, + "DB_CONNECTION": { + "description": "xxx.", + "value": "pgsql" + } }, "formation": { }, - "addons": [ - - ], + "addons": ["heroku-postgresql:hobby-dev"], "buildpacks": [ { - "url": "vendor/bin/heroku-php-apache2" + "url": "heroku/php" } ] } diff --git a/bin/deploy.sh b/bin/deploy.sh index eb3f435..df37350 100644 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -1,2 +1,2 @@ # Sync database changes -php artisan migrate +php artisan migrate -n --force diff --git a/config/database.php b/config/database.php index fd22e8e..2ac9138 100644 --- a/config/database.php +++ b/config/database.php @@ -1,5 +1,15 @@ [ 'driver' => 'pgsql', - 'host' => env('DB_HOST', 'localhost'), + 'host' => $host, //env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '5432'), - 'database' => env('DB_DATABASE', 'forge'), - 'username' => env('DB_USERNAME', 'forge'), - 'password' => env('DB_PASSWORD', ''), + 'database' => $database, // env('DB_DATABASE', 'forge'), + 'username' => $username, // env('DB_USERNAME', 'forge'), + 'password' => $password, // env('DB_PASSWORD', ''), 'charset' => 'utf8', 'prefix' => '', 'schema' => 'public', diff --git a/readme.md b/readme.md index 4373c3e..31ecb18 100644 --- a/readme.md +++ b/readme.md @@ -1,5 +1,7 @@ Life Coach helps its users to manage their goals and helps reaching them. +To achieve a goal, you need commitment, dedication and consistency. + Being the richest man in the cemetery doesn't matter to me. Going to bed at night saying we've done something wonderful, that's what matters to me. Steve Jobs diff --git a/resources/views/sleep.blade.php b/resources/views/sleep.blade.php index 6b31c6a..37b50e0 100644 --- a/resources/views/sleep.blade.php +++ b/resources/views/sleep.blade.php @@ -47,9 +47,7 @@
{{ $sleep->begin_date }}
{{ $sleep->end_date }}
- - {{ $sleep->duration }} - + {{ $sleep->duration }}