add foreman to start dev enviroment

This commit is contained in:
João Geonizeli
2021-08-14 21:38:42 -03:00
parent 98a2011445
commit c1129b9953
4 changed files with 11 additions and 0 deletions

3
.foreman.yml Normal file
View File

@@ -0,0 +1,3 @@
rails: bundle exec rails server
webpack: yarn dev
relay: yarn relay:watch

View File

@@ -44,6 +44,7 @@ group :development do
gem "graphql_playground-rails" gem "graphql_playground-rails"
gem "web-console", ">= 4.1.0" gem "web-console", ">= 4.1.0"
gem "foreman"
gem "listen", "~> 3.3" gem "listen", "~> 3.3"
gem "spring" gem "spring"
end end

View File

@@ -113,6 +113,7 @@ GEM
faker (2.18.0) faker (2.18.0)
i18n (>= 1.6, < 2) i18n (>= 1.6, < 2)
ffi (1.15.3) ffi (1.15.3)
foreman (0.87.2)
globalid (0.5.2) globalid (0.5.2)
activesupport (>= 5.0) activesupport (>= 5.0)
graphql (1.12.14) graphql (1.12.14)
@@ -338,6 +339,7 @@ DEPENDENCIES
enumerize enumerize
factory_bot_rails (~> 6.2) factory_bot_rails (~> 6.2)
faker (~> 2.18) faker (~> 2.18)
foreman
graphql graphql
graphql_playground-rails graphql_playground-rails
image_processing (~> 1.12) image_processing (~> 1.12)

View File

@@ -42,5 +42,10 @@ yarn relay
yarn relay:watch // requer a instalação do watchman 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 ## ⛳ Modelo De Domínio
![](./erd.svg) ![](./erd.svg)