You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy via rsync (pass option to clean the dest folder) the build artifacts into ASSETS_DIR/web and ASSETS_DIR/admin on remote. ASSETS_DIR can be set in GitHub secrets. Make sure other assets copied, too.
Backend
In a GitHub action:
Build docker image
Push to docker hub (in same step with buildx, probably)
DB Migration
A. SSH to remote with tunnel
B. Use tunnel port with dbmate to run migration (set the DATABASE_URL in secrets)
Within ssh? Pull latest docker image from hub, perhaps using a docker-compose?
Dockerfile will automatically run node app (don't forget to set envs)
Reasoning
Cannot bundle backend code because certain libraries (sharp) cannot be bundled, having binary code. Selective extracting of repo from monorepo hasn't been successful (turborepo outside of docker, yarn.build creates huge zip, yarn pack doesn't do what I expect).
The text was updated successfully, but these errors were encountered:
For the new version, here is what I'm thinking:
Frontend
In a GitHub action:
vite build
Backend
In a GitHub action:
A. SSH to remote with tunnel
B. Use tunnel port with dbmate to run migration (set the DATABASE_URL in secrets)
Reasoning
Cannot bundle backend code because certain libraries (sharp) cannot be bundled, having binary code. Selective extracting of repo from monorepo hasn't been successful (turborepo outside of docker, yarn.build creates huge zip, yarn pack doesn't do what I expect).
The text was updated successfully, but these errors were encountered: