How to run generate & migrate in production on a VPS for SQLite Database?

So I have a database in development that I run
db:generate
&
db:migrate
on to create the database & then run my app that uses it.

But how do I do that in production when I can't run direct commands. I'm using https://easypanel.io on a self-hosted VPS.

Do I just use pre-scripts or post-scripts? What is the recommended way to go about it?
Manage your server without fighting the terminal. Server control panel based on Docker.
Was this page helpful?