More (user-) fault tolerant install script
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
AI Policy
- [x] I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.
Is your feature request related to a problem? Please describe.
I tried out Ash for the first time, knowing little elixir.
I used the install script on the homepage.
It aborted when it could not connect to postgres.
I got postgres running, ran the migrations with mix ectom.migrate and started mix phx.server.
CSS and JS were missing.
Being new to the ecosystem I was unaware that I had to rerun mix setup.
I spent half a day debugging this, getting confused by JS and tailwind errors.
Describe the solution you'd like
A better warning and instructions to rerun mix setup.
Better loggin as to which plugin is throwing the error.
Detection if assets were installed or not before running the app build.
Describe alternatives you've considered
Doing the DB migration / connection last because it's the most 'moving' part. That means if the setup script bail out I can do the last mile easily.
Additional context
No response
The db migration/connection should be last in the current setup, but this all makes perfect sense. Making the install script attempt to first check connection to the database and provide a more friendly error makes sense to me, as does doing mix setup on a fresh install before that too.
I'll mark this as a good first issue for others to contribute, thanks!