Locally, my seeding works fine running this script from my package.json file
“seed1”: “adonis seed --force --files UserSeeder.js”
However, I get the following error when trying to run this script below for production.
“heroku-postbuild”: “npm run production && npm run seed1”
Error: ENOENT: no such file or directory, open '/tmp/build_e21559bb4d5a80d45f8cf95569fd3e11/.env'
I have also tried to change the script to
“node ace seed --force --files UserSeeder.js”
but I get the same error