Upsun User Documentation

Local Development

Upsun Beta access

Test and provide feedback for our newest offering - Upsun!

You can register for the Beta by clicking here and completing the form.

Sign up for Beta access

Now that your Flask app is deployed on Upsun, you need a local environment to be able to make quick changes. You can use the built-in Flask development server.

To do so, follow these steps:

  1. To allow your virtual environment to communicate with your database, run the following command:

    Terminal
    upsun tunnel:open -y

    An SSH tunnel to all the services for your app is open.
    To verify it’s open and working, run the following command:

    Terminal
    upsun tunnel:info
  2. To instruct Upsun to prepare everything your Flask development server needs to start, run the following commands:

    Terminal
    npm install
    npm run build
  3. To start your server, run the following command:

    Terminal
    npm run start

    You can now view your local instance at http://127.0.0.1:5000.

Is this page helpful?