Need a little help with deno deploy for a newbie
Hi,
How to pass my .env file on deploy and how to not have to authorize with github in the browser every time? this is an example of how I am trying it now with my typical auth failure response - the site deploys but the .env does not
PS C:\Users\Brad\saaskit> deployctl deploy --env-file=.env
>>
i Using config file 'C:\Users\Brad\saaskit\deno.json'
‼ Failed to get token from credentials file. Will provision a new token for this execution but please make sure to fix the issue afterwards. × The credentials file has been tampered with and will be ignored. Please delete it.
i Provisioning a new access token... i Authorization URL:........
‼ Failed to get token from credentials file. Will provision a new token for this execution but please make sure to fix the issue afterwards. × The credentials file has been tampered with and will be ignored. Please delete it.
i Provisioning a new access token... i Authorization URL:........
3 Replies
hey, env vars can be set deno deploy dashboard, within the settings page on each project
Thank you, also with a deno.env it looks like
Any idea about the authorization token on every deploy? would be nice to get around that error wherever the "credentials file" is... I can't see
hey, the error you encounter seems to come from here: https://github.com/denoland/deployctl/blob/873e36ef145b98c8762b777e2b1532e4096f4f94/src/utils/token_storage.ts#L37
i'm guessing that it's looking for
credentials.json
file defined in config here: https://github.com/denoland/deployctl/blob/873e36ef145b98c8762b777e2b1532e4096f4f94/src/utils/info.ts#L13
but i don't have experience with deployctl
, i just set it up in github actions and it does the lifting for me. I just push to main
branch and project gets deployed
here's a doc on how to set it up, in case you'd go that route: https://docs.deno.com/deploy/manual/ci_github/#github-actions