Skip to content

Commit dc1f90e

Browse files
authored
Merge pull request #7 from danrleypereira/fix/repositories
Changing respositories name in knowledge.go to reflect the changes in…
2 parents 978f16b + d10ec6b commit dc1f90e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

knowledge/knowledge.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type RunInstruction struct {
2727
}
2828

2929
type LayersDirectory struct {
30-
requires []string // layers directories. Ex: { "tendaedu-backend" "layers-auth-vanilla"}
30+
requires []string // layers directories. Ex: { "layers-core-backend" "layers-core-id"}
3131
instructions []RunInstruction
3232
}
3333

@@ -495,7 +495,7 @@ var directoriesNeedsDictionary = map[string]DirectoryNeeds{
495495
return succeeded, reason, solution
496496
},
497497
run: func(args []string) error {
498-
pathToBackendCore := os.Getenv("LAYERS_PATH") + "/tendaedu-backend"
498+
pathToBackendCore := os.Getenv("LAYERS_PATH") + "/layers-core-backend"
499499

500500
cmd := exec.Command("sudo", "docker-compose", "up", "-d")
501501
cmd.Dir = pathToBackendCore
@@ -542,7 +542,7 @@ var directoriesNeedsDictionary = map[string]DirectoryNeeds{
542542
return succeeded, reason, solution
543543
},
544544
run: func(args []string) error {
545-
pathToBackendCore := os.Getenv("LAYERS_PATH") + "/tendaedu-backend"
545+
pathToBackendCore := os.Getenv("LAYERS_PATH") + "/layers-core-backend"
546546

547547
cmd := exec.Command("sudo", "docker-compose", "up", "-d")
548548
cmd.Dir = pathToBackendCore
@@ -596,9 +596,9 @@ var directoriesNeedsDictionary = map[string]DirectoryNeeds{
596596
check: func(args []string) (succeeded bool, reason string, solution string) {
597597
dir := args[0]
598598
ports := map[string]string{
599-
"tendaedu-backend": "8009",
600-
"layers-auth-vanilla": "8090",
601-
"layers-webapp": "8080",
599+
"layers-core-backend": "8009",
600+
"layers-core-id": "8090",
601+
"layers-core-app-web": "8080",
602602
}
603603

604604
succeeded, reason, solution = checkProcessAtPort(ports[dir], "node", dir)
@@ -612,7 +612,7 @@ var directoriesNeedsDictionary = map[string]DirectoryNeeds{
612612
}
613613

614614
var layersDirectoriesDictionary = map[string]LayersDirectory{
615-
"tendaedu-backend": {
615+
"layers-core-backend": {
616616
requires: []string{},
617617
instructions: []RunInstruction{
618618
{
@@ -626,8 +626,8 @@ var layersDirectoriesDictionary = map[string]LayersDirectory{
626626
},
627627
},
628628
},
629-
"layers-auth-vanilla": {
630-
requires: []string{"tendaedu-backend"},
629+
"layers-core-id": {
630+
requires: []string{"layers-core-backend"},
631631
instructions: []RunInstruction{
632632
{
633633
path: "root",
@@ -640,11 +640,11 @@ var layersDirectoriesDictionary = map[string]LayersDirectory{
640640
},
641641
},
642642
},
643-
"tendaedu-web": {
643+
"layers-core-app-web-legacy": {
644644
requires: []string{
645-
"tendaedu-backend",
646-
"layers-webapp",
647-
"layers-auth-vanilla",
645+
"layers-core-backend",
646+
"layers-core-app-web",
647+
"layers-core-id",
648648
},
649649
instructions: []RunInstruction{
650650
{
@@ -658,10 +658,10 @@ var layersDirectoriesDictionary = map[string]LayersDirectory{
658658
},
659659
},
660660
},
661-
"layers-webapp": {
661+
"layers-core-app-web": {
662662
requires: []string{
663-
"tendaedu-backend",
664-
"layers-auth-vanilla",
663+
"layers-core-backend",
664+
"layers-core-id",
665665
},
666666
instructions: []RunInstruction{
667667
{
@@ -677,9 +677,9 @@ var layersDirectoriesDictionary = map[string]LayersDirectory{
677677
},
678678
"layers-apps-comunicados": {
679679
requires: []string{
680-
"tendaedu-backend",
681-
"layers-auth-vanilla",
682-
"layers-webapp",
680+
"layers-core-backend",
681+
"layers-core-id",
682+
"layers-core-app-web",
683683
},
684684
instructions: []RunInstruction{
685685
{
@@ -704,9 +704,9 @@ var layersDirectoriesDictionary = map[string]LayersDirectory{
704704
},
705705
"layers-agenda": {
706706
requires: []string{
707-
"tendaedu-backend",
708-
"layers-auth-vanilla",
709-
"layers-webapp",
707+
"layers-core-backend",
708+
"layers-core-id",
709+
"layers-core-app-web",
710710
},
711711
instructions: []RunInstruction{
712712
{
@@ -850,6 +850,6 @@ var staticErrors = map[string]map[string]string{
850850
"solution": "Install node using nvm(https://github.com/nvm-sh/nvm) or asdf(https://github.com/asdf-vm/asdf-nodejs)",
851851
},
852852
"docker_init": {
853-
"solution": "Be sure that you ran `sudo docker-compose up -d` at `tendaedu-backend` or `payments`",
853+
"solution": "Be sure that you ran `sudo docker-compose up -d` at `layers-core-backend` or `payments`",
854854
},
855855
}

0 commit comments

Comments
 (0)