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

Using --project-dir option #940

Open
hx2A opened this issue Aug 25, 2018 · 1 comment
Open

Using --project-dir option #940

hx2A opened this issue Aug 25, 2018 · 1 comment

Comments

@hx2A
Copy link

hx2A commented Aug 25, 2018

When deploying a package this works fine to deploy a package:

$ cd quickdraw-lambdas/
$ chalice deploy --no-autogen-policy

but this does not:

$ cd ..
$ chalice --project-dir "quickdraw-lambdas/" deploy --no-autogen-policy

I get the error message:

FileNotFoundError: [Errno 2] No such file or directory: 'quickdraw-lambdas/.chalice/config.json'

Even though that file exists:

$ ll quickdraw-lambdas/.chalice/config.json
-rw-rw-r-- 1 jim jim 129 Aug 18 21:07 quickdraw-lambdas/.chalice/config.json

I can change that directory to an absolute path to make it work but I want it to be relative. I do see issue #414 . Is it supposed to work this way? Is there a way to specify a relative path?

Thanks

@kyleknap
Copy link
Contributor

It looks like as of now it does not support relative paths. However, I am inclined to support relative paths. It is tedious to always specify absolute paths. @jamesls @stealthycoin any thoughts?

It looks like the issue you linked aims to fix it. So I would recommend following that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants