Deploy Your App

You now have Course Builder on your system. The final step is to get it into your cloud project so that it can be served over the web.

Download Dependencies

Before you deploy, ensure you have all the things (like libraries, other software) you need to be successful. The deploy script mentioned in the section below will try to download any dependencies also, but in this step you will get more messages about the process. These messages may help you if anything is wrong. To download dependencies, open a command prompt and get to your coursebuilder directory. Type the following command:

bash ./scripts/common.sh

Deploy from Mac and Linux

Open a command prompt and get to your coursebuilder directory. Type the following command:

bash ./scripts/deploy.sh <your_project_id>

If your deployment was successful, you can visit your new site.

Issues Deploying from Mac

If you run into errors, it may be because you need to install Xcode. Open a command prompt and go through the following steps.

  1. Go to the root of your Course Builder directory
  2. Type this: xcode-select --install
  3. Try deploying again. If you do not encounter any further problems, you do not need to do anything else. If you continue to encounter problems, go to the next step.
  4. Type this: sudo xcodebuild -license
  5. Accept the agreement if you agree.
  6. Try deploying again.

It should work now.

Deploy from Windows

Windows is currently supported only on a best-effort basis. We expect these instructions to work, but if they do not, consider a Linux Virtual Machine or a Mac if one is available to you.

Use Cygwin

Install Cygwin and then from the Cygwin command prompt get to your coursebuilder directory. Type the following command:

bash ./scripts/deploy.sh <your_project_id>