Skip to main content

Flask

Pre-requisites

Set up

  • If you haven't yet connected your GitHub account with your disco installation, run:
disco github:apps:add

You only need to do this once.

Steps

  • Create an CNAME record for your project and point it to your disco server's address
    • let's say that your disco server's address is disco.example.com
    • create a CNAME for your project such as blog.example.com (the "from") and point it to the server's disco.example.com address (the "to")
  • Fork the example repo
  • Add the project to your server by running the command below:
disco projects:add \
--name my-flask-site \
--github USERNAME/REPONAME \
--domain DOMAINNAME

above, replace:

  • the USERNAME/REPONAME with the path to your GitHub fork (e.g., john/my-project)
  • DOMAINNAME with the domain you wish to deploy your project to

That's it! Your project will now deploy to your server.

Once deployed, go to your domain name. Your site should be there!