-
Notifications
You must be signed in to change notification settings - Fork 373
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
feat: add local dev setup script #1237
Conversation
misc/dev/dev.sh
Outdated
# - start the backup service for transactions | ||
( | ||
echo "Starting Gno node..." | ||
gnoland start |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note for later: add the --in-memory
if it exists, or create a tempdir?
misc/dev/dev.sh
Outdated
) & | ||
( | ||
# Sleep the restore until the node is fully loaded up | ||
sleep $DELAY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
misc/dev/dev.sh
Outdated
@@ -0,0 +1,77 @@ | |||
#!/usr/bin/env bash | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note for later: add a --watch
option to automatically reload based on FS changes.
In relation to #1201, we're discussing the possibility of implementing a feature like |
I've updated this PR to include heavy feedback from @gfanton.
Please note there are no genesis transactions at play apart from the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just a minor comment
|
||
import ( | ||
_ "github.com/gnolang/gno/gno.land/cmd/gnoland" | ||
_ "github.com/gnolang/tx-archive/cmd" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the current status on considering to move tx-archive in this repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am completely fine with moving the archiver to the monorepo, along with our gnolang/faucet
.
Do you want me to open a PR that migrates it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there good reasons to keep our repo by itself? We could try keeping the Dockerfile in a different repo and leave the main parts and libraries here.
If we make our 'gno' repo depend on another, and that one also depends on 'gno', it might cause problems with versions not matching up and make it harder to manage when we update things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we lose anything by merging it into the monorepo - given that we keep the go.mod
of the original repo that we migrate (just to keep imports separate, and not bloat the main gno go.mod
), and retain some ability to do releases on this repo, which shouldn't be too tricky
What do you think @ajnavarro @gfanton ?
Co-authored-by: Guilhem Fanton <[email protected]>
## Description This PR introduces a bash script and simple Makefile to control local development. It starts a node instance, along with the appropriate backup / restore processes. Parent task: gnolang#1131 Docker equivalent: gnolang#1238 <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details> --------- Co-authored-by: Guilhem Fanton <[email protected]>
Description
This PR introduces a bash script and simple Makefile to control local development.
It starts a node instance, along with the appropriate backup / restore processes.
Parent task: #1131
Docker equivalent: #1238
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description