Import Code from GitHub

Doprax offers a seamless GitHub integration, enabling you to import and sync your source code directly from your GitHub account. This feature simplifies the development process by allowing easy access and management of your code repositories.

Last updated: May 14, 2025

Prerequisites

  • A Doprax account.
  • A GitHub account.

Step-by-Step Guide

1. Connecting Your GitHub Account

If your Doprax account is not yet connected to GitHub:

  1. Navigate to account page on your Doprax platform.
  2. Click on the Connect to GitHub button.
  3. Follow the prompts to authorize Doprax on GitHub. This will link your GitHub account to your Doprax account.
connect github to doprax

For more information, check out this documentation page on how to connect your GitHub account to Doprax.

2. Importing Code from GitHub

Once your GitHub account is connected from the app platform section, click one of your app spaces or create a new app space. In the chosen app space, follow the steps:

  1. Start by creating a new app in the app space on the Doprax app platform.
  2. Click on the app you just created and you will be directed to the main code of your app.
  3. Click on “Import from GitHub.” You’ll be redirected to a page listing your GitHub repositories.
  4. Choose the repository you wish to import and confirm.

If your repository has a doprax.yaml configuration file, in the main code section, you will be asked to confirm automatic configuration. For example, in the doprax.yaml file, you can define environment variables and also databases. Check out the doprax.yaml docs page to learn more.

3. Syncing Your Code

To keep your Doprax app updated with the latest changes in your GitHub repository:

  1. In the “main code” section of your app, locate the “Pull new changes” option.
  2. Click on Pull New Changes button to sync the latest commits of the branch from your GitHub repository.

To view recent pulls:

  • Below the sync option, you’ll find a list of the latest pulls, including the dates and messages from the last commit. This helps you track the most recent changes imported to your Doprax app.

Best Practices

  • Regularly sync your code to ensure your Doprax app is up-to-date.
  • Check the commit messages and dates in the recent pulls list for a clear history of changes.

Troubleshooting

If you encounter issues while connecting or syncing, ensure that your GitHub account permissions are correctly set. Check out this docs page about how to connect your GitHub account to Doprax.

For further assistance, contact Doprax support.