Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add console log on rebuild complete #504

Merged
merged 1 commit into from
May 5, 2020

Conversation

vikotar
Copy link
Contributor

@vikotar vikotar commented May 3, 2020

while following along the redwood tutorial on youtube, I found that we are not logging something after the rebuild. I kept looking on the screen.xD. Then I just tried the request. and it worked.
A console log on rebuild complete might be helpful for people when they are looking in the terminal for the build processes.
Let me know if something is off or it needs further improvement. thanks!!

attaching screenshots for better understanding.

**before the console log it looks like this.
Screenshot 2020-05-03 at 4 29 00 PM

** after putting the console log it looks like this.
Screenshot 2020-05-03 at 4 39 43 PM

@@ -187,6 +187,7 @@ const reloadLambdas = () => {
console.log('Change detected, rebuilding...')
purgeRequireCache()
lambdaFunctions = requireLambdaFunctions(PATH)
console.log(`rebuild completed. Listening again on ${HOSTNAME}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know if adding the hostname again is helpful. Something like a timestamp for how long it took would be interesting.

packages/dev-server/src/main.ts Outdated Show resolved Hide resolved
@peterp peterp added this to the next release milestone May 3, 2020
@peterp
Copy link
Contributor

peterp commented May 3, 2020

Btw, thanks so much for this!

@vikotar vikotar force-pushed the chore/rebuild_console_log branch from a7eafb6 to bc4f1d4 Compare May 3, 2020 16:34
@vikotar
Copy link
Contributor Author

vikotar commented May 3, 2020

@peterp updated the code with suggested changes. It's much better now. Thanks for the suggestion. 🙌
Screenshot 2020-05-03 at 10 01 44 PM

@peterp peterp merged commit e8f5c05 into redwoodjs:master May 5, 2020
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.

2 participants