Skip to content

Commit 25a62fa

Browse files
author
Jovert Lota Palonpon
committed
Basic Backup setup, close jovertical#40
1 parent fe57dd2 commit 25a62fa

25 files changed

+1032
-14
lines changed

Diff for: .docker/php-fpm/Dockerfile

+10-9
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,22 @@ RUN ln -snf /usr/share/zoneinfo/${MASTER_TZ} /etc/localtime && echo ${MASTER_TZ}
77

88
RUN apt-get update && apt-get install -y \
99
build-essential \
10-
libzip-dev \
11-
libpng-dev \
12-
libjpeg62-turbo-dev \
10+
curl \
11+
git \
12+
jpegoptim optipng pngquant gifsicle \
1313
libfreetype6-dev \
14+
libjpeg62-turbo-dev \
15+
libpng-dev \
16+
libzip-dev \
1417
locales \
15-
zip \
16-
jpegoptim optipng pngquant gifsicle \
17-
vim \
18+
mysql-client \
1819
unzip \
19-
git \
20-
curl
20+
vim \
21+
zip
2122

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

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

Diff for: app/Console/Kernel.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ class Kernel extends ConsoleKernel
2424
*/
2525
protected function schedule(Schedule $schedule)
2626
{
27-
// $schedule->command('inspire')
28-
// ->hourly();
27+
$schedule->command('backup:clean')->daily()->at('00:00');
28+
29+
$schedule->command('backup:run')->daily()->at('01:00');
2930
}
3031

3132
/**

Diff for: composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"laravel/framework": "5.8.*",
2121
"laravel/telescope": "^2.0",
2222
"laravel/tinker": "^1.0",
23+
"spatie/laravel-backup": "^6.1",
2324
"tymon/jwt-auth": "dev-develop#34d8e48 as 1.0.0-rc.3.2",
2425
"valorin/pwned-validator": "^1.2"
2526
},

Diff for: composer.lock

+171-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: config/app.php

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@
172172
/*
173173
* Package Service Providers...
174174
*/
175+
Spatie\Backup\BackupServiceProvider::class,
175176
Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
176177
Intervention\Image\ImageServiceProvider::class,
177178

0 commit comments

Comments
 (0)