arlyxiao / best-practice

1 stars 0 forks source link

fly.io deploy commands backup #102

Open arlyxiao opened 1 year ago

arlyxiao commented 1 year ago

fly.io

Launch

flyctl launch

Deploy

flyctl deploy

Console

flyctl ssh console

Bind domain

flyctl certs create your-domain
flyctl certs show your-domain

Django with poetry

Init project

poetry init
poetry add django
poetry shell

In poetry shell

django-admin startproject core .
python manage.py migrate
python manage.py runserver
python manage.py createsuperuser

Export requirements.txt

poetry export -f requirements.txt --output requirements.txt --without-hashes