How to deploy on Coolify

  1. Buy a VPS
  2. Use ssh to install Coolify: curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash.root@srv668524:~# ssh [email protected]
  3. Open host:8000 to register ([email protected]) and open Coolify Admin.
  4. Create app project and database project,add database enviroment varibles to app project enviroment varibles.
  5. Add domain and webhook to app project.
  6. Deploy the app.

cd /app
export FLASK_APP=app
flask db init # Initialize migrations folder if not done already
flask db migrate -m "Create users table"
flask db upgrade # Apply the migrations

flask shell
from app import db
db.drop_all() # Drop all existing tables
db.create_all() # Create all tables defined in your models
from app.models import User
admin = User.create_admin(
email='[email protected]',
username='admin',
password='Gern@8280',
first_name='Admin',
last_name='User'
)