Closed nicobrinkkemper closed 5 years ago
I just removed the double-quotes and semi-colon, which worked. It gave a database error though, but was able to migrate after restarting web. My fixed dotenv.tml:
APP_NAME={{ getenv "APP_NAME" }}
APP_ENV={{ getenv "APP_ENV" }}
APP_KEY={{ getenv "APP_KEY" }}
APP_DEBUG={{ getenv "APP_DEBUG" }}
LOG_CHANNEL={{ getenv "LOG_CHANNEL" }}
APP_URL={{ getenv "APP_URL" }}
DB_CONNECTION={{ getenv "DB_CONNECTION" }}
DB_HOST={{ getenv "DB_HOST" }}
DB_PORT={{ getenv "DB_PORT" }}
DB_DATABASE={{ getenv "DB_DATABASE" }}
DB_USERNAME={{ getenv "DB_USERNAME" }}
DB_PASSWORD={{ getenv "DB_PASSWORD" }}
MAIL_DRIVER={{ getenv "MAIL_DRIVER" }}
MAIL_HOST={{ getenv "MAIL_HOST" }}
MAIL_PORT={{ getenv "MAIL_PORT" }}
MAIL_USERNAME={{ getenv "MAIL_USERNAME" }}
MAIL_PASSWORD={{ getenv "MAIL_PASSWORD" }}
MAIL_ENCRYPTION={{ getenv "MAIL_ENCRYPTION" }}
CACHE_DRIVER={{ getenv "CACHE_DRIVER" }}
SESSION_DRIVER={{ getenv "SESSION_DRIVER" }}
QUEUE_DRIVER={{ getenv "QUEUE_DRIVER" }}
SESSION_DRIVER={{ getenv "SESSION_DRIVER" }}
SESSION_LIFETIME={{ getenv "SESSION_LIFETIME" }}
REDIS_HOST={{ getenv "REDIS_HOST" }}
REDIS_PASSWORD={{ getenv "REDIS_PASSWORD" }}
REDIS_PORT={{ getenv "REDIS_PORT" }}
MIX_PUSHER_APP_KEY={{ getenv "MIX_PUSHER_APP_KEY" }}
MIX_PUSHER_APP_CLUSTER={{ getenv "MIX_PUSHER_APP_CLUSTER" }}
AUTHY_SECRET={{ getenv "AUTHY_SECRET" }}
STRIPE_MODEL={{ getenv "STRIPE_MODEL" }}
STRIPE_KEY={{ getenv "STRIPE_KEY" }}
STRIPE_SECRET={{ getenv "STRIPE_SECRET" }}
BRAINTREE_MODEL={{ getenv "BRAINTREE_MODEL" }}
BRAINTREE_ENV={{ getenv "BRAINTREE_ENV" }}
BRAINTREE_MERCHANT_ID={{ getenv "BRAINTREE_MERCHANT_ID" }}
BRAINTREE_PUBLIC_KEY={{ getenv "BRAINTREE_PUBLIC_KEY" }}
BRAINTREE_PRIVATE_KEY={{ getenv "BRAINTREE_PRIVATE_KEY" }}
BROADCAST_DRIVER={{ getenv "BROADCAST_DRIVER" }}
PUSHER_APP_ID={{ getenv "PUSHER_APP_ID" }}
PUSHER_KEY={{ getenv "PUSHER_KEY" }}
PUSHER_SECRET={{ getenv "PUSHER_SECRET" }}
PUSHER_APP_CLUSTER={{ getenv "PUSHER_APP_CLUSTER" }}
SENTRY_DSN={{ getenv "SENTRY_DSN" }}
LOGGLY_TOKEN={{ getenv "LOGGLY_TOKEN" }}
AWS_ACCESS_KEY_ID={{ getenv "AWS_ACCESS_KEY_ID" }}
AWS_SECRET_ACCESS_KEY={{ getenv "AWS_SECRET_ACCESS_KEY" }}
AWS_DEFAULT_REGION={{ getenv "AWS_DEFAULT_REGION" }}
AWS_BUCKET={{ getenv "AWS_BUCKET" }}
Hi
Thanks for reporting this issue. The issue is specifically with the Dotenv package being updated in Laravel.
The environment file is invalid: Dotenv values containing spaces must be surrounded by quotes
The error is misleading as there is no env value without quotes. The solution I have found is to remove the semicolon at the end of each line. I will make an update today.
No problem. FYI I also had some setup problems with arc:install as I couldn't add the option for --ignore-platform-reqs which I needed inside a composer-only container. I installed them separately which and after that I ran the installer. IMO it can't hurt to add --ignore-platform-reqs by default which should help docker users.
Hi @nicobrinkkemper
I have just released a new version with the bug fix and your suggestion. I have also altered the install command to self remove Arc from the project after the initial setup.
Expected: web container is running Result: exited with code
.env generated by arc
20-arc-env