Create .env.local
with TMDB_API_KEY
, DATABASE_URL
and UPLOAD_URL
e.g.:
TMDB_API_KEY=<your key>
DATABASE_URL="file:../dev.db"
UPLOAD_URL="videos"
Build on the usb drive with a pc with node installed.
npm install
Create .env.production
with TMDB_API_KEY
, DATABASE_URL
and UPLOAD_URL
e.g.:
TMDB_API_KEY=<your key>
DATABASE_URL="file:../../production.db"
UPLOAD_URL="../videos"
Generate and apply prisma
npm run prismaGenerateProduction
npm run prismaDeployProduction
Build nextjs site
npm run build
After this make sure a node installation is located on the usb drive ..\node-v21.1.0-win-x64\
The start.bat
will run npm run start
with this node. So no node is required to be installed.