Question

Github question

So I am wondering how you host a repo on here if anyone has any answers to this that would be awesome. It is in NodeJS


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
November 13, 2022

Hello there,

A similar question was asked before in our community, which I’ll link bellow:

https://www.digitalocean.com/community/questions/how-do-i-deploy-github-repository-and-run-it-on-digital-ocean-vps

You could use the git clone command to clone your project from GitHub to your server.

Then you could follow the steps here on how to setup pm2 to run your Node.js app 24/7 on the server:

Regards

KFSys
Site Moderator
Site Moderator badge
November 11, 2022

Hi @bryced2014

You don’t actually host a repository here, you have you repository on Github and deploy it on App Platform or on your Droplet.

If you are using a Droplet, you’ll need to just do a

  1. git clone

If you are using App Platform, check the following Docs for more info:

https://docs.digitalocean.com/products/app-platform/quickstart/

Additionally, give the following repo a look as well it can be really helpful:

https://github.com/digitalocean/app_action

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.