Cohostly
Hosting guides

Host it, whatever it’s built with.

The start command, port, dependency file and common mistakes for each framework assistants like to write.

Host a Flask appPython. gunicorn --bind 0.0.0.0:$PORT app:app
Host a FastAPI appPython. uvicorn main:app --host 0.0.0.0 --port $PORT
Host a Django appPython. gunicorn config.wsgi --bind 0.0.0.0:$PORT
Host a Streamlit appPython. streamlit run app.py --server.port $PORT --server.address 0.0.0.0 --server.headless true
Host a Gradio appPython. python app.py
Host a Express appNode.js. node server.js
Host a Next.js appJavaScript and TypeScript. next start -p $PORT
Host a Vite and React appJavaScript and TypeScript. vite preview --host 0.0.0.0 --port $PORT
Host a SvelteKit appJavaScript and TypeScript. node build
Host a Astro appJavaScript and TypeScript. node ./dist/server/entry.mjs
Host a Nuxt appJavaScript and TypeScript. node .output/server/index.mjs
Host a Remix and React Router appJavaScript and TypeScript. npm start (serves the build output)
Host a Ruby on Rails appRuby. bundle exec puma -C config/puma.rb
Host a Go appGo. ./app (built with go build -o app)