Deploy Options

To get a comprehensive deploy options with Assembly, please follow Deploying Options with Flask. Assembly is actually Flask, so everything on the link is valid for Assembly.

Below are some of the options, you would be interested in.

Environment Variable

Note: When deploying, make sure you set the right environment

export ASSEMBLY_APP=default
export ASSEMBLY_ENV=Development


Gunicorn ‘Green Unicorn’ is a WSGI HTTP Server for UNIX. It’s a pre-fork worker model ported from Ruby’s Unicorn project. It supports both eventlet and greenlet.

export ASSEMBLY_APP=default
export ASSEMBLY_ENV=Production
gunicorn -w 4 wsgi:app


uWSGI is a fast application server written in C. It is very configurable which makes it more complicated to setup than gunicorn.

export ASSEMBLY_APP=default
export ASSEMBLY_ENV=Production
uwsgi --http --module wsgi:app


Gokku is a very small PaaS to do git push deployments to your own servers (Digital Ocean, Linode) similar to Heroku.

Learn more about Gokku

Gokku configuration is already shipped with Assembly, with app.json. The app.json will launch your website from 0 to 100 just like it would on Heroku.

At the root of the application, app.json is a manifest format for describing web apps. It declares environment variables, scripts, and other information required to run an app on your server.

  "gokku": {
    "domain_name": "",
    "env": {
      "ASSEMBLY_ENV": "Production",
      "ASSEMBLY_APP": "default"
    "scripts": {
      "release": [
        "asm-admin sync-models",
        "asm setup"
    "run": {
      "web": "wsgi:app"