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

Cannot change to .ngrest/ngrest : No such file or directory #91

Open
JL2014 opened this issue Sep 28, 2022 · 3 comments
Open

Cannot change to .ngrest/ngrest : No such file or directory #91

JL2014 opened this issue Sep 28, 2022 · 3 comments

Comments

@JL2014
Copy link

JL2014 commented Sep 28, 2022

Hi,

With a "ngrest" compiled manually, when I apply your "Notes" example, all ngrest/grestserver are working fine,
but when launch ngrest in "Notes" project, I have this error :

~/notes# ngrest
fatal: Cannot change to '/root/.ngrest/ngrest': No such file or directory

I don't know what is this ".ngrest" folder outside the "ngrest" folder or the "notes" folder.

Moreover, I see in ngrest script a reference to a local ".ngrest" folder line 41 ("if [ -f .ngrest/packages ]"),
but there is a variable (NGREST_ROOT=~/.ngrest) a little above, maybe two diffrent cases, maybe a small error.

Greetings, JL.

@JL2014
Copy link
Author

JL2014 commented Sep 28, 2022

Also, if I try to add "ngrest-db" into "ngrest" folder (and not in "notes" folder), I have this error :

~/ngrest# ngrest add loentar/ngrest-db sqlite
/root/.ngrest/packages/loentar/ngrest-db/scripts/ngrest-trigger: line 21: .ngrest/services: No such file or directory

@loentar
Copy link
Owner

loentar commented Sep 28, 2022

If you installed it manually from source you have to maintain everything manually as well..

(Also, working under root is actually bad idea..)

@JL2014
Copy link
Author

JL2014 commented Sep 29, 2022

Hi @loentar,

If you installed it manually from source you have to maintain everything manually as well..

Ok but what "maintain" to avoid these two errors ?
How indicate to "ngrest" the real path of "NGREST_ROOT" because the one it uses does not exist !

My main problem is :

# build from source and install "ngrest" (from https://github.com/loentar/ngrest/wiki/Build-ngrest-from-source-code)
ngrest create Notes
cd notes
ngrest
fatal: Cannot change to '/root/.ngrest/ngrest': No such file or directory
# this folder "/root/.ngrest" doesn't exists !

(Also, working under root is actually bad idea..)

I know that, it's just for a POC ;-)

Greetings, JL.

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

No branches or pull requests

2 participants