digital-ocean

Terraform: Mount volume

血红的双手。 提交于 2019-12-12 08:55:19
问题 According to documentation, using terraform, I'm able to create a droplet on digital ocean: resource "digitalocean_volume" "foobar" { region = "nyc1" name = "baz" size = 100 description = "an example volume" } So, I'm also able to add a volume to it: resource "digitalocean_droplet" "foobar" { name = "baz" size = "1gb" image = "coreos-stable" region = "nyc1" volume_ids = ["${digitalocean_volume.foobar.id}"] } I'd like to know how to mount this on a desired location. I need to mount it

Setting up a vagrant with a digitalocean image

谁都会走 提交于 2019-12-12 08:23:18
问题 I dont know if this should be posted here or on another stack community so please let me know if its wrong posting it here. How do I get a local (i.e. on my laptop) VM that is identical to my DO droplet (Ubuntu 14.04 - LAMP etc) running? Does DO provide a provisioner for Vagrant that can replicate the setup of a DO droplet? It's handy being able to develop on my machine, instead of on a Droplet in the cloud. 回答1: It should be possible, I never tried myself (as I switch to EC2) but I saw there

docker container in same network cannot reach other container in same network

房东的猫 提交于 2019-12-12 05:39:04
问题 I'm using ubuntu 15.10 on digital ocean The following works docker network create a docker run -d --name=nginx --net=a nginx docker run -it --net=a --name web node bash apt-get install -yq curl && curl nginx The opposite, trying to reach the web container from the nginx container , does not work for me. I go into the web container: docker exec -it web bash Then I add my index.html file Then I use http-server to serve an index.html file with the command http-server ./ -p 4200 -a 0.0.0.0 index

Strongloop iOS User Creation Error

不羁的心 提交于 2019-12-12 04:47:27
问题 I'm trying to create and save a test user in server with this code: LBRESTAdapter *adapter = ((AppDelegate *)[[UIApplication sharedApplication] delegate]).adapter; if (adapter) { TeacherRepository *repo = (TeacherRepository *)[adapter repositoryWithClass:[TeacherRepository class]]; if (repo) { Teacher *st = (Teacher *)[repo createUserWithEmail:@"test@test.com" password:@"test"]; if (st) { [st saveWithSuccess:^{ NSLog(@"Saved in server!"); } failure:^(NSError *error) { NSLog(@"Error: %@",

Do I need two separate ssl.conf files if I am hosting multiple domains on same server?

末鹿安然 提交于 2019-12-12 04:34:45
问题 I have installed SSL successfully for my main domain eg. domain.net and www.domain.net I am now trying to enable SSL into the blog on the website eg. blog.domain.net and www.blog.domain.net I have gone through the installation and everything has been a success, however after restarting nginx when I visit 'blog.domain.net.conf' it is returning a '403 Forbidden' error now. I have tried doing: sudo chown -R root:root /usr/share/nginx/html/* sudo chown -R dev:dev /usr/share/nginx/html/* sudo

Nginx server (not showing changes) - Delete cache?

泄露秘密 提交于 2019-12-12 01:57:36
问题 I'm running a Laravel Site (Ubuntu) on Nginx (Not a virtual box). When I make changes to a css file, or any file for that matter i'm unable to see the changes right away. I've tried changing sendfile from on to off as noted in this link: How to clear the cache of nginx? And I couldn't find a Nginx cache file to delete the cache. Many sites recommend going to the "path/to/cache" folder but I can't find it: https://www.nginx.com/blog/nginx-caching-guide/ Anyway I don't believe I set up any kind

Deployment of Rails app using nginx, passenger and capistrano

我的梦境 提交于 2019-12-11 23:35:37
问题 I am deploying my first rails application. I have some trouble doing that. I will describe what I did till now. 1) I configured everything correctly by going through gorails.com 2) I am trying to deploy it on Digital Ocean 3) I performed cap deploy production and the end result was successful with some failures in middle. 4) I started nginx server 5) In my browser it gave me 500 error. 6) I checked my production.log and it showed all the migrations and seeds that it ran. It created tables

Wordpress with LiteSpeed shows 404 when trying to access it by my new domain

为君一笑 提交于 2019-12-11 23:24:39
问题 I have created an instance of wordpress with open LiteSpeed cache in Digital Ocean droplets, it works fine if I have the IP configured in the Settings/General Site and Wordpress URL, but when I add my dns name, starts popping up 404 everywhere. The screen reads: 404 Not Found The resource requested could not be found on this server! Proudly powered by LiteSpeed Web Server Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content

How to receive emails with mailgun in Node.js?

谁都会走 提交于 2019-12-11 22:11:58
问题 I'm already using mailgun to send some data to an email (my gmail account). Now I want to receive emails using @mydomain.com I saw this other question with 2 answers that seem useless. I have already set a Route so I receive any msg send to *@mydomain.com* and to forward them to my personal email at gmail: http://i.imgur.com/VJBz6ij.png So I tried sending an email to my personal gmail but I'm not receiving any emails. I have my website on a VPS in digital ocean in case that is important. 回答1:

kubernetes PVCs sharing a single PV?

爱⌒轻易说出口 提交于 2019-12-11 19:07:10
问题 I am trying to deploy a persistentvolume for 3 pods to work on and i want to use the cluster's node storage i.e. not an external storage like ebs spin off. To achieve the above i did the following experiment's - 1) I applied only the below PVC resource defined below - apiVersion: v1 kind: PersistentVolumeClaim metadata: creationTimestamp: null labels: io.kompose.service: pv1 name: pv1 spec: accessModes: - ReadWriteOnce resources: requests: storage: 1Gi status: {} This spin's up a storage set