Wappler Version : 7.2.1
Operating System : MacOS
Server Model: NodeJS
Database Type: Postgres
Hosting Type: Heroku
Expected behavior
When in Target: Production Changes and Seeds directory should be accessible to apply database changes.
Actual behavior
When in Target: Production neither folder is visible. The Schemas has a warning “No schemas info available…” When clicking it this shows in the properties bin
Database credentials are verified and correct. There are no issues connection to the database outside wappler.
Back in wappler. Add the database information under the (wappler created) production target.
Confirm under globals database connections.
When in Target: Development the database connection db shows credentials for local sqlite db.
When changing to Production it shows credentials for the Heroku postgres db.
Create a table in target: development database. Click “Apply database changes”
Deploy app again to Heroku.
Change to Production target and navigate to database manager. There are no Changes or Seeds folders available. Instead it shows as the screenshot above.
Very difficult to answer at this point I would assume. But do you think there might be a way to temporarily solve it on my end for the time being? Trying to gauge whether I should start a new project in 6.8 and see if that works or if I can salvage work already done.
@web-works Did you create a new app in 7.1.2? I tried open this app up in 6.8 and it was giving me the same issue, with a slightly different wording. I’m wondering if when this projected was created (by setting it up as heroku environment in the create new app dialogue) somewhere something was saved in a project file and it doesn’t matter if I move it between wappler versions.
Just a thought, the button is disabled for production, try changing the target usage to development temporarily, this may fool wappler into enabling it
Restarted Wappler and the connection worked, button is no longer greyed out and Wappler went ahead and automatically added the below to the db.json and I'm now able to apply changes to the production target.
So out of curiosity, I fired up a brand new application using the wappler + heroku workflow outlined in the repro steps above. And again I was met with the "blank" Production target db.json. Is it perhaps an issue where it fails to generate the db.json properly in this particular workflow?
Also, you're amazing! thank you for catching that so quickly.
Ah! Great find and thank you for the update. I've marked my post as solution for now so should anyone stumble on this thread having the same issue they can hopefully solve it the same way in the meantime.