Skip to content

analythium/app-platform-shiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DigitalOcean App Platform Example for Shiny

https://www.digitalocean.com/products/app-platform/

https://www.digitalocean.com/docs/app-platform/languages-frameworks/docker/

https://github.com/digitalocean/sample-dockerfile

Deploy to DigitalOcean

The deploy to DO button needs the .do/deploy.template.yaml file https://www.digitalocean.com/docs/app-platform/how-to/add-deploy-do-button/

YAML spec for .do/app.yaml: https://www.digitalocean.com/docs/app-platform/references/app-specification-reference/

  • name: String. The name of the app. Must be unique across all apps in the same account.Minimum length: 2. Maximum length: 32. Must comply with the following regular expression: ^[a-z][a-z0-9-]{0,30}[a-z0-9]$.
  • services: Array of Objects. Workloads which expose publicy-accessible HTTP services.
    • name: String. The name. Must be unique across all components within the same app.

git, github, gitlab, or image can be set for git/github/gitlab repo or a registry image (DOCR or Docker Hub)

# app.yaml
name: app-platform-shiny
services:
- dockerfile_path: Dockerfile
  github:
    branch: main
    deploy_on_push: true
    repo: analythium/app-platform-shiny
  name: app-platform-shiny

Otherwise, the app structure follows the Heroku setup. In fact, the same Dockerfile can be deployed to both. The trick to prevent timeout is not necessary on DO (it is paid plan).

About

DigitalOcean App Platform Example for Shiny

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published