-
Notifications
You must be signed in to change notification settings - Fork 1
sh: 1: source: not found
with PR #230 on DigitalOcean
#234
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
Comments
Copying the additional debug information from Slack... Did you make any changes to the build process in the last few branches? I tried running the history branch which works fine on my mac on ubuntu and now get this error:
|
@benloh That is odd since the |
I pulled netcreate onto the URSYS digital ocean droplet, and confirmed that within the Node script environment that The mitigation is to use the dot command, which is available under /bin/sh, as Ben discovered. I'd write it like this:
INTERESTING NOTE Apparently
Yikes! So TIL that a best practice is to test against Tip The correct place to check shell would be to do the
That's because this is a command line that is executed by a separate shell, not the user's terminal shell. |
Re-opening this... I just set up a new DO instance with Ubuntu 24.04 and am running into this problem again. Specifically, running ./nc.js --dataset=demo
...
> [email protected] dev
> . @build-ursys.sh && brunch w -s
sh: 1: .: @build-ursys.sh: not found It looks like the "scripts": {
"dev": ". ./@build-ursys.sh && brunch w -s", Adding the path can now run .nc.js correctly. @dsriseah if you agree, I can make the change. Or you can grab it. Thanks! |
Sure, go ahead and make the change. I think this is an issue due to |
oh, I bet it's because this only works in vscode, which has a script that forces the current directory to be in the current PATH. If you are running outside of VSCODE, then the path isn't set this way. |
Fixed with #242. |
Uh oh!
There was an error while loading. Please reload this page.
Joshua reports that
npm run dev
does not work on DigitalOcean. It returns an error:echo $SHELL
reveals/bin/bash
yetsource
does not work.However, changing the
dev
script to use.
instead ofsource
seems to work. Inpackage.json
from PR #230 change line 10 from"dev": "source ./@build-ursys.sh && brunch w -s"
, toAnd then run
npm run dev
seems to work.@dsriseah Any suggestions on a proper solution?
The text was updated successfully, but these errors were encountered: