-
Notifications
You must be signed in to change notification settings - Fork 175
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
refactor: streamline running on localnet #861
Conversation
Your Render PR Server URL is https://near-wallet-pr-861.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-bt79o52pp1jl6vv04450. |
Your Render PR Server URL is https://betanet-wallet-pr-861.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-bt79o6app1jl6vv044kg. |
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.
Let's leave port default?
The main goal: if you're already running a local NEAR network, make it as easy as possible to run a local contract-helper & Wallet on that network. There is no need to gitignore `.env.local` since it stores no sensitive info. Including it makes it much easier to run on a local network with one command: NODE_ENV=local yarn start Also, note that when running a local network with nearup or rainbow-bridge-cli, the only validator account is named `node0`. Using this as the account creator in contract-helper is the simplest way to get started (see near/near-contract-helper#221), which means the account suffix here needs to match. I think this is a confusing suffix and would much prefer `localnet`, but I don't know if that's worth doing now. Ideally such a change would flow out from `nearup`, rather than being part of the setup in `near-contract-helper` or here.
Your Render PR Server URL is https://near-mainnet-staging-wallet-pr-861.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-bu2ccdf93em9ftsqji40. |
@mattlockyer good to merge? |
The main goal: if you're already running a local NEAR network, make it as easy as possible to run a local contract-helper & Wallet on that network.
Someone in such a situation will very likely be running a different app using Parcel on port 1234, and will need to sign into Wallet using a different port. This switches the local Wallet port to 4000.
There is no need to gitignore
.env.local
since it stores no sensitive info. Including it makes it much easier to run on a local network with one command:Finally, note that when running a local network with nearup or rainbow-bridge-cli, the only validator account is named
node0
. Using this as the account creator in contract-helper is the simplest way to get started (see near/near-contract-helper#221), which means the account suffix here needs to match.I think this is a confusing suffix and would much prefer
localnet
, but I don't know if that's worth doing now. Ideally such a change would flow out fromnearup
, rather than being part of the setup innear-contract-helper
or here.