Coder Social home page Coder Social logo

quote's Introduction

Тестовое задание Laravel

Задание

Смотреть тут

Старт

Иметь локально докер https://docs.docker.com/docker-for-windows/install/

  1. Перейти в папку _docker, выполнить cp .env.example .env (скопировать .env.example и сохранить как .env)
  2. Выбрать DATA_PATH_HOST в .env, который раньше не юзался, иначе ошибка будет (для windows аля D:/.laradock/ltest_data)
  3. [Only Windows] установить COMPOSE_PATH_SEPARATOR в ;
  4. Перейти в папку _docker/nginx/sites, выполнить cp ltest.conf.example ltest.conf
  5. Перейти в папку _docker/laravel-horizon/supervisord.d и выполнить cp laravel-horizon.conf.example laravel-horizon.conf
  6. docker-compose up -d nginx mysql phpmyadmin laravel-horizon redis redis-webui (из папки _docker)

* при необходимости xdebug - нужно поставит true WORKSPACE_INSTALL_XDEBUG и PHP_FPM_INSTALL_XDEBUG.

Первый запуск

Войти в workspace-контейнер (docker-compose exec workspace bash) и выполнить команды:

composer install
cp .env.example .env
php artisan key:generate
chmod -R 777 storage bootstrap/cache
php artisan storage:link

[optional]:
php artisan migrate --seed

PS. Не забыть прописать домен в hosts-файл: 127.0.0.1 laravel-test.com.

PhpMyAdmin / Redis Admin / Queue

  • phpmyadmin: {IP}:9999
  • redis admin: {IP}:9987
  • horizon (queue): /horizon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.