⭐️ GOAL: Deploy your first application on CapRover!
- [10m] ☀️ Warmup: Update CapRover Dashboard
- [10m] 📚 TT: Introduction to CapRover
- [20m] 💻 Activity: Feature Frenzy
- [15m] 💻 Activity: Feature Frenzy Presentations
- [10m] 🌴 Break
- [20m] 💻 Challenge: Deploy a Tarfile
- [10m] 👍 Review: Deploy a Tarfile
- [20m] 💻 Challenge: Deploy via CapRover CLI
- [10m] 👍 Review: Deploy via CapRover CLI
By the end of this class, you'll be able to…
- Demonstrate a working, self-hosted platform as a service application available on a custom domain.
- Use CapRover to deploy a web application written in Python and Flask.
- Log in to your CapRover server:
https://captain.dev.YOURDOMAIN.COM
- Click the
Update
link at the top left, then clickLogout
. - Wait 3 minutes and refresh the login page. When it appears, log in to your updated CapRover instance!
Walk through the features on the CapRover website.
The image below walks through using CapRover to deploy:
Break out into teams of 4, then write a short synopsis of the following links. In your own words:
- Explain the feature
- Describe it's options (if applicable)
- Tell us how you'd use it.
Be prepared to give a 2-3 minute review of your topic to the class.
GOAL: Practice the most approachable deployment mechanism --- upload a tarfile on CapRover, then deploy it.
- Visit caprover/captain-sample-apps.
- Choose a
.tar
file for a sample app, and download it. Recommended:- Python/Django
- Go
- Node
- React
- Go to
https://captain.dev.YOURDOMAIN.COM
in your browser. - From the left menu, select Apps and create a new app.
- Name it
first-app
. - Go to "Deployment" tab and upload the tar file, then wait for the deployment to complete.
- The first time you build, it'll take a few minutes. After the build is completed, visit
https://first-app.dev.YOURDOMAIN.COM
. - CONGRATS! Your app is live!! When complete, celebrate by posting the link to your working deployment on the
#bew2-2-docker
Slack channel!
Go over the activity and answer any questions.
GOAL: Practice an alternative, popular way to deploy: via CLI command.
If you get stuck, review the following guide to deploying on CapRover: Complete Webapp Tutorial
-
Visit caprover/captain-sample-apps.
-
Choose a
.tar
file for a sample app, and download it. Recommended:- Python/Django
- Go
- Node
- React
-
Unzip the content by double-clicking the
.tar
file you downloaded, then open a terminal and navigate to the unzipped directory. -
Run the deploy command below. Be sure to read carefully and follow the instructions once you execute it!
caprover deploy
Enter
second-deploy
when asked for the app name. -
The first time you build, it’ll take a few minutes. After the build is completed, visit
second-deploy.dev.YOURDOMAIN.COM
.
Go over the activity and answer any questions, then dismiss class.