cd frontend
npm run build
npx vercel --prodcd frontend
npm run build
npx netlify deploy --prod --dir=build# Install Railway CLI
npm install -g @railway/cli
# Deploy
railway login
railway init
railway up- Connect your GitHub repo to Render
- Create a Web Service
- Build Command:
npm run build - Start Command:
cd backend && python main.py
# Create Heroku app
heroku create your-app-name
# Set environment variables
heroku config:set ENVIRONMENT=production
# Deploy
git add .
git commit -m "Deploy to Heroku"
git push heroku mainSet these in your deployment platform:
ENVIRONMENT=production
PORT=8000-
Build Frontend:
cd frontend npm install npm run build -
Install Backend Dependencies:
cd backend pip install -r requirements.txt -
Start Production Server:
cd backend ENVIRONMENT=production python main.py
- If you get "build directory not found" error, run
npm run buildin the frontend directory first - Make sure Python 3.9+ is installed
- Check that all dependencies are installed correctly