Succeeded in deploying Directus app, but I can't log in. Password reset doesn't work.

I succeeded in deploying to fly.io using the repo shared here GitHub - freekrai/directus-fly: Starter to deploy Directus on fly.io which I found in this thread Discord

I made sure to update package.json dependencies to their latest versions.

I followed the directions in the readme.md

In fly.toml and Dockerfile I had to change the port number from 6055 to 3000 so it could pass the healthchecks in the fly cli app.

The Directus Login Screen successfully displays and I am excited. but it’s not letting me login with the details I set up in fly.toml

flyctl secrets set ADMIN_EMAIL=******@gmail.com
flyctl secrets set ADMIN_PASSWORD=*************

I’ve tried to Reset Password, but the email never arrives. I have checked my spam folder, and nothing is there.

I’m happy to provide any other information as needed :+1:

I don’t know directus but I have a guess that you need to configure an email server for it to be sent. You’d want to look in your app logs when you request the password reset to see if something comes up and directus docs as this doesn’t seems a Fly.io related issue.

I’m also trying to get this combo to work. But lubien is correct, the base image of Directus didn’t have sendmail (the default) set up when I tried earlier this week, so that email will fail. One thing you can try is not setting an ADMIN_EMAIL and ADMIN_PASSWORD and then looking at the deploy logs for that information. If it still doesn’t work you can probably assume the issue is with something else

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.