Skip to content

Conversation

@VictorAugDB
Copy link
Contributor

@VictorAugDB VictorAugDB commented May 12, 2022

Description

I updated the docs describing how to run the application with Docker and I left as Locally the previous instructions.
I also expose socket port to run remote

Why

It's a good thing to describe because there are those who didn't want to install the dependencies locally

It's necessary to run yarn remote localhost 2580
I'm added Docker installation page if someaone wants to use it, i change the
commands yarn start, yarn dev, yarn debug to the respective docker-compose commands
and separate running commands for "With Docker" and "Locally", in "Locally"
i left it as it was.

update docs
@VictorAugDB VictorAugDB force-pushed the update-docs-to-use-docker-compose-commands branch from 2a3b49a to 41f888f Compare May 12, 2022 16:41
Remove the build script from  this branch an use the build come from the origin main
@@ -0,0 +1,3 @@
services:
api:
command: bash -c "yarn install && yarn debug" No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If using the debug command, we should also expose the remote debug port, by default it's 9229. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok i configured the debug to docker.
See the commit here: e9a05b1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And configured to run locally.
See the commit here: 5b5c626

Config debug on .vscode to run in attach mode on port 9229, modify .gitignore to not ignore this file.
On the package.json add explicity what port the debug need to run and add --nolazy flag
reason: https://stackoverflow.com/questions/21534565/what-does-the-node-js-nolazy-flag-mean
Expose the debug port only if docker-compose-debug.yaml file is runned.
Add inlineSourceMap flag to tsconfig.json
reference: https://www.typescriptlang.org/tsconfig#inlineSourceMap
@brunohcastro brunohcastro requested a review from talyssonoc June 15, 2022 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants