can't parse .env.defaults with comments
Closed this issue · 6 comments
ralyodio commented
trying to load a file .env.defaults
which has bash comments.
it seems to not like it.
ralyodio commented
might also be FOO="bar"
humblepenguinn commented
Hi @ralyodio thank you for opening the issue, could you be a bit more specific and provide the following details:
- The full command you ran and its output
- The version of
envio
that you are using - Operating system and shell
Whenever you open a new issue there is a template provided to you to properly format your concerns. Please use that next time
Thank you!
ralyodio commented
i used example in getting started
ralyodio commented
skatespot-api on main [!] via v20.9.0
➜ envio version
Version 0.5.1
skatespot-api on main [!] via v20.9.0
➜ uname -srm
Linux 6.7.4-arch1-1 x86_64
skatespot-api on main [!] via v20.9.0
➜ envio create skatespot-api -f .env.dev
> Enter your encryption key: Input received
Error: Can not parse arguments
Arguments should be in the format of key=value
skatespot-api on main [!] via v20.9.0 took 4s
❯ cat .env.dev
# environment
HOST_USER=ubuntu
HOST_DOMAIN=skatespot
HOST_PATH=dev.skatespot.com
META_SERVICE=skatespot-dev-api
PORT=8091
MAILGUN_DOMAIN=mg.skatespot.com
MAILGUN_API_KEY=abc
SCALESERP_API_KEY=abc
STRIPE_SK=
STRIPE_WEBHOOK_SECRET=
COINPAYMENTS_WEBHOOK_SECRET=
DENO_ENV=development
MONGO_CONNECTION_STRING=mongodb://abc:xyz@mongodb:27017/skatespot-dev?authSource=admin
ELASTIC_SEARCH_URI=http://localhost:9200/dev
#comma separated user ids to follow on user register
AUTOFOLLOW_USER_ID=-8799-ca576adce552
AUTOFOLLOW_USERNAMES=skatespot
#message queue
RABBITMQ_USER=skatespot-dev
RABBITMQ_PASS=xyz
RABBITMQ_PORT=5672
RABBITMQ_HOST=host.docker.internal
RABBITMQ_VHOST=
ralyodio commented
its probably the unassigned variables. but we need them as placeholders.
humblepenguinn commented
Most probably. I'll take a look at the problem and get it fixed.