Skip to content

Commit

Permalink
Merge pull request #54 from vedmant/dev
Browse files Browse the repository at this point in the history
Upgrade to Laravel 10
  • Loading branch information
vedmant authored Aug 9, 2023
2 parents 5cabc4c + 996b26c commit a54f63a
Show file tree
Hide file tree
Showing 12 changed files with 1,815 additions and 1,408 deletions.
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

46 changes: 4 additions & 42 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,44 +1,15 @@
FROM php:8-fpm
FROM php:8.2-fpm

# Get repository and install wget and vim
RUN apt-get update && apt-get install --no-install-recommends -y wget vim git unzip apt-transport-https gnupg

RUN apt-get install -y locales \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen

# Install PHP extensions deps
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
zlib1g-dev \
libicu-dev \
unixodbc-dev \
libssl-dev \
g++

# Install PHP extensions
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install \
mbstring \
pdo_mysql \
zip \
ftp \
&& docker-php-ext-enable \
opcache
# Install supervisor
RUN apt-get update && apt-get install -y git supervisor unzip

# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- \
--install-dir=/usr/local/bin \
--filename=composer

# Install supervisor
RUN apt-get install -y supervisor

# Install Node
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs

# Install Yarn
Expand All @@ -49,17 +20,8 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
# Clean repository
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

# Set timezone
RUN rm /etc/localtime
RUN ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime
RUN "date"

CMD mkdir -p /app

VOLUME /app

CMD chown -R www-data:www-data /app

WORKDIR /app

CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
2 changes: 1 addition & 1 deletion app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Kernel extends HttpKernel
protected $middleware = [
// \App\Http\Middleware\TrustHosts::class,
\App\Http\Middleware\TrustProxies::class,
\Fruitcake\Cors\HandleCors::class,
\Illuminate\Http\Middleware\HandleCors::class,
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
Expand Down
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@
"require": {
"php": "^8.0",
"fakerphp/faker": "^1.19",
"fruitcake/laravel-cors": "^2.0.5",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.0",
"laravel/sanctum": "^2.14",
"laravel/telescope": "^4.7",
"laravel/framework": "^10.0",
"laravel/sanctum": "^3.2",
"laravel/telescope": "^v4.16.0",
"laravel/tinker": "^2.7",
"laravel/ui": "^3.4"
"laravel/ui": "^v4.2.2"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^2.12",
Expand All @@ -26,7 +25,7 @@
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -66,8 +65,12 @@
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "dev",
"minimum-stability": "stable",
"prefer-stable": true
}
Loading

0 comments on commit a54f63a

Please sign in to comment.