From c1129b9953faa9a4e600b23abca1204ef0a29b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Geonizeli?= Date: Sat, 14 Aug 2021 21:38:42 -0300 Subject: [PATCH] add foreman to start dev enviroment --- .foreman.yml | 3 +++ Gemfile | 1 + Gemfile.lock | 2 ++ README.md | 5 +++++ 4 files changed, 11 insertions(+) create mode 100644 .foreman.yml diff --git a/.foreman.yml b/.foreman.yml new file mode 100644 index 0000000..c63a8ca --- /dev/null +++ b/.foreman.yml @@ -0,0 +1,3 @@ +rails: bundle exec rails server +webpack: yarn dev +relay: yarn relay:watch diff --git a/Gemfile b/Gemfile index 404f3e8..eb55e3a 100644 --- a/Gemfile +++ b/Gemfile @@ -44,6 +44,7 @@ group :development do gem "graphql_playground-rails" gem "web-console", ">= 4.1.0" + gem "foreman" gem "listen", "~> 3.3" gem "spring" end diff --git a/Gemfile.lock b/Gemfile.lock index fc32f9f..0f7b1f1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -113,6 +113,7 @@ GEM faker (2.18.0) i18n (>= 1.6, < 2) ffi (1.15.3) + foreman (0.87.2) globalid (0.5.2) activesupport (>= 5.0) graphql (1.12.14) @@ -338,6 +339,7 @@ DEPENDENCIES enumerize factory_bot_rails (~> 6.2) faker (~> 2.18) + foreman graphql graphql_playground-rails image_processing (~> 1.12) diff --git a/README.md b/README.md index da28abd..a463dc5 100644 --- a/README.md +++ b/README.md @@ -42,5 +42,10 @@ yarn relay yarn relay:watch // requer a instalação do watchman ``` +Ou inicie rode todos os comandos acima com: +``` +foreman start -f .foreman.yml +``` + ## ⛳ Modelo De Domínio ![](./erd.svg)