Questions tagged [digital-ocean]

DigitalOcean is a provider of cloud infrastructure and services. ONLY PROGRAMMING QUESTIONS ARE ON-TOPIC (e.g. questions about programming for the DigitalOcean API). Questions about DigitalOcean the company, administrating systems, customer service based question, etc. are off-topic for Stack Overflow.

DigitalOcean is an American cloud computing provider based in New York City.

The company leases capacity from existing data centers, including sites in New York, Amsterdam, San Francisco, London, Singapore, Frankfurt, Toronto, and Sydney. DigitalOcean allows users to quickly create virtual private servers, called "droplets" (), Kubernetes clusters (), and serverless Functions ().

DigitalOcean is highly accessible to students through the Github Student Education Pack. The company also publishes community tutorials on a variety of open source technologies.

Useful Links

3938 questions
8
votes
3 answers

Is it possible to reuse Terraform templates for different resources providing different values for variables?

I am using Terraform to setup multiple droplets running Consul on DigitalOcean. Perhaps I am missing something basic, but it seems surprisingly difficult to provide right configuration for them. resource "digitalocean_droplet" "prime" { count =…
Tad Lispy
  • 2,806
  • 3
  • 30
  • 31
8
votes
2 answers

Capistrano: Don't know how to build task 'deploy:new_release_path'

I am deploying for the first time to a Digital Ocean Ubuntu droplet. I have configured everything and followed all the steps and am now on the step where I issue the command: cap production deploy:initial. For this command I am getting back this…
Ctpelnar1988
  • 1,235
  • 3
  • 15
  • 38
8
votes
3 answers

Edit existing PM2 process

I have an existing PM2 process that I would like to add the "--max-memory-restart" setting to. How can I do that? The process was created from the command line without a JSON file. If I were creating a new process I would just run: PM2 start…
Alex
  • 690
  • 1
  • 9
  • 29
8
votes
2 answers

Configure nginx for two node apps, with one on a subdomain

Issue I'm trying to set up nginx so I can have my domain, domain.com run by a node web app on port 3000, and the subdomain dev.domain.com run by a second node web app on port 3001. When I run this configuration domain.com is connected to the right…
Josh G
  • 644
  • 7
  • 21
8
votes
2 answers

Images not served in production via image_tag in Rails 4

I deployed my app to production and noticed that images are not served from image_tag, but are served if I use asset_path. I have my images under app/assets/images. On production I precompile them so they are in public/assets and have names such as…
yerassyl
  • 2,958
  • 6
  • 42
  • 68
8
votes
1 answer

Mulitple Docker Containers on Port 80 with Same Domain

My question is similar to this question but with only one domain. Is it possible to run multiple docker containers on the same server, all of them on port 80, but with different URL paths? For example: Internally, all applications are hosted on the…
Steve
  • 11,831
  • 14
  • 51
  • 63
8
votes
5 answers

Python - Node.js (V8) runtime is not available on this system

I'm getting the following error when trying to use ExecJS: execjs.RuntimeUnavailable: Node.js (V8) runtime is not available on this system I have node.js installed on my machine (Ubuntu 14.04). Which Node outputs /usr/bin/node Any ideas?
Ricky Barnett
  • 1,130
  • 3
  • 15
  • 32
8
votes
3 answers

Creating subdomain with Vesta CP and DigitalOcean

I'm trying to configure but everytime I access domain.mysite.com.br keeps showing me the not found error. www.mysite.com.br is redirecting me correct. Only the subdomain is not. This is my vesta configurations: Digital ocean DNS configuration My…
Thyoity
  • 191
  • 1
  • 4
  • 14
8
votes
4 answers

Unexpected mongo exit code 100. Restarting

I was trying to run Meteor on my VPS and I was getting this error: Unexpected mongo exit code 100. Restarting. Unexpected mongo exit code 100. Restarting. Unexpected mongo exit code 100. Restarting. Can't start Mongo server. MongoDB had an…
Marek
  • 2,608
  • 4
  • 25
  • 32
8
votes
6 answers

Dokku asking for password when trying to git push

I have created a droplet on digital ocean with an image of ubuntu and dokku. I have followed this tutorial to deploy my app, I have also done the configuration to add my ssh key to dokku. Now when I try to "git push [name] master" I get asked for…
user3570188
  • 81
  • 1
  • 3
8
votes
2 answers

End To End Testing on Headless Server

I am trying to set up an environment for end-to-end testing on a droplet running Ubuntu server 12.04.3 on digital ocean. What I am trying to achieve in the end is for my jenkins (installed on the one droplet) to be able to run my end-to-end tests.…
7
votes
1 answer

Automatically deploying docker-compose on DigitalOcean via Github

I am a newbie when it comes to docker. I have a web app that contains 4 services. I manage to create a docker-compose for it. I would like now to publish it. My plan is to upload the whole repository with the compose file and the source codes to a…
Gil SH
  • 3,789
  • 1
  • 27
  • 25
7
votes
1 answer

How can I specify cron timezone in k8s cron job?

According to documentation (https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/) I can create cron job in k8s with specify timezone like: "CRON_TZ=UTC 0 23 * * *" My deployment file is: apiVersion: batch/v1 kind: CronJob metadata: …
7
votes
1 answer

Fatal error: Array and string offset access syntax with curly braces is no longer supported in php 8.0 pkcs5_unpad

I got this error after copying code from a tutorial. It's deprecated and I tried resolving it: Array and string offset access syntax with curly braces is no longer supported in .../app/Http/Helpers/helpers.php My code copy: if…
TopMTV
  • 81
  • 1
  • 1
  • 3
7
votes
2 answers

Docker Image > 1GB in size from python:3.8.3-alpine

I'm pretty new to docker and, although I've read lots of articles, tutorials and watched YouTube videos, I'm still finding that my image size is in excess of 1 GB when the alpine image for Python is only about 25 MB (if I'm reading this…
Darren
  • 1,682
  • 1
  • 15
  • 33