The nodejs buildpack applies to this sample app.
Check out the overview to see more information about limitations and configuration options for the buildpack.
This content is from the README file of https://github.com/digitalocean/sample-vuejs.
- We provide a sample app using Vue.js that you can deploy on App Platform.
- These steps will get this sample application running for you using App Platform.
Note: Following these steps may result in charges for the use of DigitalOcean services.
- You need a DigitalOcean account. If you don’t already have one, you can sign up at https://cloud.digitalocean.com/registrations/new.
- Click this button to deploy the app to the DigitalOcean App Platform.
If you are not logged in, you will be prompted to log in with your DigitalOcean account.
Using this button disables the ability to automatically re-deploy your app when pushing to a branch or tag in your repository as you are using this repo directly.
If you want to automatically re-deploy your app, fork the GitHub repository to your account so that you have a copy of it stored to the cloud.
Click the Fork button in the GitHub repository and follow the on-screen instructions. After forking the repo, you should now be viewing this README in your own GitHub org (e.g. https://github.com/
To deploy the new repo, visit https://cloud.digitalocean.com/apps and click Create App. Then, click GitHub, select the repository you created and select the main branch. App Platform will inspect the code, automatically detect the kind of resource to create, and use the correct buildpack to create and deploy a container.
After clicking the Deploy to DigitalOcean button or completing the instructions above to fork the repo, follow these steps:.
Configure the app such as specifying HTTP routes, environment variables or adding a database. Provide a name for your app and select which region you want to deploy your app to and click Next.
The closest region to you should be selected by default. All App Platform apps are routed through a global CDN.
So this will not affect your app performance, unless it needs to talk to external services. On the following screen, leave all the fields as they are and click Next.
Confirm your Plan settings and how many containers you want to launch and click Launch Basic/Pro App. You should see a “Building…” progress indicator. You can click View Logs to see more details of the build.
It can take a few minutes for the build to finish, but you can follow the progress in the Deployments tab.
Once the build completes successfully, click the Live App link in the header and you should see your running application in a new tab, displaying the home page.
If you followed the steps to fork the repo and used your own copy when deploying the app, you can push changes to your fork and see App Platform automatically re-deploy the update to your app.
During these automatic deployments, your application will never pause or stop serving request because App Platform offers zero-downtime deployments. Here’s an example code change you can make for this app:. Edit src/App.vue and replace “Welcome to Your Vue App” with a different greeting. Commit the change to the main branch.