Skip to content

Commit

Permalink
New branch (#4)
Browse files Browse the repository at this point in the history
* update the readme

* update app.json

* update app.json

* update app.json

* update app.json

* update app.json

* Update app.json

* update database config

* return to old database.php config

* change to responsive database.php config

* update deploy script

* update deploy script

* clear temp files

* remove unnecessary if array condition for single effort view

* update migration down function
  • Loading branch information
immortalize authored Mar 22, 2018
1 parent 4493381 commit 1b449f2
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 44 deletions.
3 changes: 2 additions & 1 deletion bin/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Sync database changes
php artisan migrate -n --force
php artisan migrate:refresh -n --force
php artisan cache:clear
22 changes: 20 additions & 2 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
$username = $url['user'];
$password = $url['pass'];
$database = substr($url['path'], 1);
} else {
$host = env('DB_HOST', 'localhost');
$username = env('DB_USERNAME', 'forge');
$password = env('DB_PASSWORD', '');
$database = env('DB_DATABASE', 'forge');
}


return [

/*
Expand Down Expand Up @@ -75,7 +81,20 @@
'strict' => true,
'engine' => null,
],

/*
'pgsql' => [
'driver' => 'pgsql',
'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', ''),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],
*/
'pgsql' => [
'driver' => 'pgsql',
'host' => $host, //env('DB_HOST', 'localhost'),
Expand All @@ -88,7 +107,6 @@
'schema' => 'public',
'sslmode' => 'prefer',
],

],

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists('sleeps');
Schema::dropIfExists('effort_times');
}
}

This file was deleted.

7 changes: 1 addition & 6 deletions resources/views/an_effort.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
<div class="panel panel-default">
<div class="panel-heading">Times Spent</div>
<div class="panel-body">
@if (count($effort) > 0)
<table class="table table-striped user-table">

{{--
Expand Down Expand Up @@ -82,11 +81,7 @@
</tbody>
</table>

<a href="{{ url('/efforts/create/goal/'.$goal->id) }}">Add a effort </a>

@else
There is no efforts yet. <a href="{{ url('/efforts/create/goal/'.$goal->id) }}">Add a effort! </a>
@endif
<a href="{{ url('/efforts/create/goal/'.$goal->id) }}">Add another effort </a>
</div>
</div>
{{-- Efforts End --}}
Expand Down

0 comments on commit 1b449f2

Please sign in to comment.