How to deploy on Coolify
- Buy a VPS
- Use ssh to install Coolify: curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash.root@srv668524:~# ssh [email protected]
- Open host:8000 to register ([email protected]) and open Coolify Admin.
- Create app project and database project,add database enviroment varibles to app project enviroment varibles.
- Add domain and webhook to app project.
- 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'
)