Skip to content

Commit

Permalink
Basic Backup setup, close #40
Browse files Browse the repository at this point in the history
  • Loading branch information
Jovert Lota Palonpon committed Apr 10, 2019
1 parent fe57dd2 commit 25a62fa
Show file tree
Hide file tree
Showing 25 changed files with 1,032 additions and 14 deletions.
19 changes: 10 additions & 9 deletions .docker/php-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@ RUN ln -snf /usr/share/zoneinfo/${MASTER_TZ} /etc/localtime && echo ${MASTER_TZ}

RUN apt-get update && apt-get install -y \
build-essential \
libzip-dev \
libpng-dev \
libjpeg62-turbo-dev \
curl \
git \
jpegoptim optipng pngquant gifsicle \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libzip-dev \
locales \
zip \
jpegoptim optipng pngquant gifsicle \
vim \
mysql-client \
unzip \
git \
curl
vim \
zip

RUN apt-get clean && rm -rf /var/lib/apt/lists/*

RUN docker-php-ext-install bcmath pdo_mysql mbstring zip exif pcntl && \
RUN docker-php-ext-install bcmath exif mbstring pcnt pdo_mysqll zip && \
docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ && \
docker-php-ext-install gd

Expand Down
5 changes: 3 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
$schedule->command('backup:clean')->daily()->at('00:00');

$schedule->command('backup:run')->daily()->at('01:00');
}

/**
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"laravel/framework": "5.8.*",
"laravel/telescope": "^2.0",
"laravel/tinker": "^1.0",
"spatie/laravel-backup": "^6.1",
"tymon/jwt-auth": "dev-develop#34d8e48 as 1.0.0-rc.3.2",
"valorin/pwned-validator": "^1.2"
},
Expand Down
172 changes: 171 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
/*
* Package Service Providers...
*/
Spatie\Backup\BackupServiceProvider::class,
Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,

Expand Down
Loading

0 comments on commit 25a62fa

Please sign in to comment.