Repository files navigation
Laravel 5.7
InfyOm Laravel Generator
AdminLTE
Yajra DataTables
Docker Vessel
Laradock
Opção 1: Setup local usando Laradock
Clonar o projeto com os submódulos:
git clone --recursive https://github.com/grupotesseract/vestylle-webapi
Buildar Laradock:
cd laradock
cp env-example .env
Editar no .env do Laradock:
DATA_PATH_HOST=~/.laradock/vestylle
POSTGRES_DB=vestylle
Realizar demais edições caso seja necessário alterar portas / BD's
Em seguida, editar no .env do projeto:
APP_NAME =vestylle-webapi
DB_CONNECTION =pgsql
DB_HOST =172.17.0.1
DB_PORT =5432
DB_DATABASE =vestylle
DB_USERNAME =default
DB_PASSWORD =secret
Executar os containers e comandos na raiz do projeto:
docker-compose up -d nginx php-fpm postgres
docker-compose exec workspace composer install
docker-compose exec workspace php artisan key:generate
docker-compose exec workspace php artisan migrate --seed
Opção 2: Setup local usando Docker Vessel
Clonar o projeto:
git clone --recursive https://github.com/grupotesseract/vestylle-webapi
Criar o .env e buildar o projeto:
cp .env.example-vessel .env
./vessel start
./vessel composer install
./vessel artisan key:generate
./vessel artisan migrate --seed
Build dos assets e iniciar o desenvolvimento:
./vessel yarn install
./vessel yarn run watch
Acessar http://localhost
Configurar os remotes:
# Production - Cacodemon
git remote add prod cacodemon:/var/www/html/vestylle.grupotesseract.com.br/backend.git
# Develop & Stage - TesseractDev
git remote add test tesseractdev:/var/www/html/vestylle-webapi/vestylle-webapi.git
Conferir os remotes com git remote -v:
Para executar os deploys:
# Production
git checkout master
git push prod master
# Stage
git checkout stage
git push test stage
# Develop
git checkout develop
git push test develop
About
Vestylle API + Admin
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.