digital-ocean

digital ocean manage sidekiq worker

为君一笑 提交于 2019-12-11 15:21:55
问题 I followed Properly setting up Redis and Sidekiq in production on Ubuntu 16.04 to manage sidekiq worker I created a file like touch /lib/systemd/system/sidekiq.service and added following content [Unit] Description=sidekiq After=syslog.target network.target [Service] Type=simple WorkingDirectory=/home/deploy/ezlarm-server/current ExecStart=/home/deploy/.rbenv/shims/bundle exec "sidekiq -e production" User=deploy Group=deploy UMask=0002 Environment=MALLOC_ARENA_MAX=2 RestartSec=1 Restart=on

How do I enable remote access in Elasticsearch 5.2.0 from selected devices/computers only?

核能气质少年 提交于 2019-12-11 06:52:05
问题 Currently, I am running elasticsearch 5.2.0 in my digital ocean server.To remotely access the rest apis of elasticsearch, I made following change in config/elasticsearch.yml file: network.host: 0.0.0.0 With this change, I am able to access the elasticsearch apis from anywhere using request: http://server_url:9200/...... But, I want to access the elasticsearch apis only from local and selected devices/computers . for eg: to access only from localhost(within server) and computerA , I have tried

Publishing bitbucket to digital ocean

痞子三分冷 提交于 2019-12-11 06:18:10
问题 I'm essentially trying to understand the concept of git using bitbucket; I've been practicing version control by modifying files between my local and bitbucket accounts which has proven helpful. Now I'm trying to work out how you would push the files from a remote repo in bitbucket (or i guess GitHub or the like) to a cloud hosting solution such as digital ocean. Is that even recommended? I can't really google it because result come up as thinking I mean the bitbucket server, or want to host

What port to use sending email with SMTP (mailgun) in rails app on production server (DigitalOcean)?

南楼画角 提交于 2019-12-11 05:09:18
问题 I have a rails app deployed at a digital ocean droplet configured with capistrano and mailgun, but I'm having trouble sending emails, task which I do using delayed_jobs. The thing is every time it tries to send an email I get connection timeout (verified using RAILS_ENV=production bin/delayed_jobs run in the server) and I found out that for some reason digital ocean does not allow from default for you to access through port 587 (and indeed, running telnet smtp.mailgun.org 587 takes a very

Fabric + DigitalOcean: unvisible ENVIRONMENT VARIABLE?

限于喜欢 提交于 2019-12-11 02:30:41
问题 I have server on DigitalOcean and I use fabric for deploying my code. And my code is dependent on environment variables (flask config). I've faced one strange trouble today: on server in /root/.bashrc I've added next line export CONFIG=/path/to/conf And when I executing on remote console >>> echo $CONFIG >>> /path/to/conf # result, as it should be But in fabfile I have a function def show(): run("echo $CONFIG") And it prints an empty string. WHY? Thanks in advance! 回答1: This shouldn't be the

Digital Ocean open port 8080 for spring boot application

孤街醉人 提交于 2019-12-11 00:54:53
问题 I want to run a simple Spring Boot application on my Ubuntu 16.04.6 x64 droplet. To allow incoming connections I had to open the 8080 port, since this is where the embedded tomcat server in the spring boot jar will listen for connections. I used the ufw allow 8080 command and now I see this on me droplet. #ufw status Status: active To Action From -- ------ ---- 8080 ALLOW Anywhere 22 ALLOW Anywhere 80 ALLOW Anywhere 8080 (v6) ALLOW Anywhere (v6) 22 (v6) ALLOW Anywhere (v6) 80 (v6) ALLOW

docker-machine create with digitalocean driver: ssh command error

爷,独闯天下 提交于 2019-12-11 00:07:43
问题 I´m using docker tools on windows. create command was working perfectly last week and I managed to create a number of machines on Digital Ocean. Then I tried today with no success. I repeated the same command with different regions and I always get the same result: λ docker-machine create -d digitalocean --digitalocean-access-token=MYTOKEN --digitalocean-region=ams2 vmname Running pre-create checks... Creating machine... (fernu) Creating SSH key... (fernu) Creating Digital Ocean droplet...

No matching distribution found for Django==2.2

只谈情不闲聊 提交于 2019-12-10 15:48:35
问题 I am deploying a django app on a digital ocean droplet server that I developed using Django version 2.0. Using Putty to SSH into my ubuntu server, I try to upgrade using pip install Django==2.2 . I get the following error message: Could not find a version that satisfies the requirement Django==2.2 (from versions: 1.1.3, 1.1.4, 1.2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.3, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.4, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8,

docker-compose: no gunicorn when trying “up” container

早过忘川 提交于 2019-12-10 13:11:17
问题 I'm facing with issue when I try to "up" my container on DigitalOcean env. I have Ubuntu Docker 1.7.1 on 14.04 as env droplet. There is the next error. mysite | ./docker-entrypoint: line 8: exec: gunicorn: not found This is my Dockerfile where I tried to add gunicorn setup by (apt-get, pip). Sadly but it doesn't work I have the same issue with missed gunicorn module. Dockerfile FROM python:2.7.7 RUN curl -sL https://deb.nodesource.com/setup | bash - RUN apt-get -y install nodejs RUN apt-get

How to deploy create react app on digital ocean?

*爱你&永不变心* 提交于 2019-12-10 11:55:58
问题 Anyone please explain it. I'm struggling with this.I followed this blogpost https://www.davidmeents.com/blog/how-to-simply-deploy-a-react-app-on-digital-ocean/ But all i got default page of nginx or now after some messing around with configuration i'm getting 404 not found error. There are two floders inside nginx 1) sites-availble 2)sites-enabled I'm not sure which one is relevant here. my config is like this server { listen 80; server_name 139.59.25.228; root /www/mywebsite/app/build;