问题标签 [digital-ocean]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
444 浏览

ruby-on-rails - Capistrano 部署错误 DigitalOcean Ubuntu 12.04

我正在按照本教程使用 nginx、Passenger 和 capistrano 在 VPS (DigitalOcean) 上部署我的 RoR 4 应用程序:

http://gorails.com/deploy/ubuntu/12.04

但是当我运行“cap production deploy”时,我收到以下错误:

我已经尝试修复错误几个小时了,没有运气。似乎也无法在网上找到类似的东西。

任何帮助,将不胜感激,

乌鲁别克

0 投票
1 回答
2318 浏览

ruby-on-rails-3 - 我收到 504-Gateway 超时错误

当我打开我的 Rails 应用程序时,我收到 504-Gateway 超时错误。

结果tail /var/log/nginx/error.log

然后,内容tail /home/unicorn/log/unicorn.log

0 投票
1 回答
2531 浏览

apache - apache默认不返回index.php

我最近制作了一个预装了 LAMP 的 DigitalOcean 液滴。将我的网站(包括 index.php)上传到 /var/www

Apache 只返回 It Works!页面,我必须手动将 /index.php 添加到我的 url

我尝试过的事情:

  1. 制作了一个包含“DirectoryIndex index.php”的 .htaccess 文件
  2. 添加DirectoryIndex index.php到 apache2.conf
  3. 首先在 dir.conf 中设置 index.php
  4. 制作 index.html,也没有显示出来。

编辑:这是我的 apache2.conf 文件:http://pastebin.com/BMgiNdiD

0 投票
1 回答
136 浏览

ruby-on-rails - 尝试使用 capistrano 部署到 DO。上限部署时出错:冷

  • 执行“cd -- /home/harris/harrisrobin.co/releases/20140128225905 && RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile”服务器:[“198.199.122.209”] [198.199.122.209] 执行命令** [ out :: 198.199.122.209] rake 中止!** [out :: 198.199.122.209] ** [out :: 198.199.122.209] 找不到 JavaScript 运行时。有关可用运行时的列表,请参阅https://github.com/sstephenson/execjs。** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/shared/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs /runtimes.rb:51:in autodetect' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/shared/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs.rb:5:in ' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/shared/bundle/ruby/2.0.0/gems/ execjs-2.0.2/lib/execjs.rb:4:in <top (required)>' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/shared/bundle/ruby/2.0.0/gems/uglifier-2.4.0/lib/uglifier.rb:3:in 要求'** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/shared/bundle/ruby/2.0.0/gems/uglifier-2.4.0/lib /uglifier.rb:3:in <top (required)>' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in 需要' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/ bundler-1.5.2/lib/bundler/runtime.rb:76:in block (2 levels) in require' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in each' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby -2.0.0-p353/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in block in require' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in each' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home /harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in require' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler.rb:131:in require' ** [out :: 198.199.122.209] ** [出 :: 198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/config/application.rb:7: 在<top (required)>' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/Rakefile:4:in 需要' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/Rakefile:4:in `' ** [out :: 198.199。 122.209] ** [out :: 198.199.122.209](通过使用 --trace 运行任务查看完整跟踪)** [out :: 198.199.122.209] 命令在 2183 毫秒内完成 * [deploy:update_code] 回滚 * 执行“rm -rf /home/harris/harrisrobin.co/releases/20140128225905; true" 服务器:["198.199.122.209"] [198.199.122.209] 执行命令命令在 354 毫秒内完成失败:"rvm_path=$HOME/.rvm $HOME/ .rvm/bin/rvm-shell 'default' -c 'cd -- /home/harris/harrisrobin.co/releases/20140128225905 && RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile'" on 198.199.122.209

有任何想法吗 ?我不知道这意味着什么:

命令在 354 毫秒内完成失败:“rvm_path=$HOME/.rvm $HOME/.rvm/bin/rvm-shell 'default' -c 'cd --

我正在遵循本指南并陷入 cap deploy:cold : https ://coderwall.com/p/yz8cha

0 投票
1 回答
325 浏览

wordpress - UMASK、Virtualmin、WordPress 和 Ubuntu 12.04

我已经使用 DigitalOcean 部署了一个新的 VPS。这是一个标准的 LAMP 堆栈,我在 Virtualmin 中创建了一个新的“虚拟服务器”后正在测试 WordPress 安装,但它的 UMASK 是 022,我需要它是 002。

所以我更新了 /etc/login.defs 第 151 行并重新启动了 Apache,然后创建了一个新的虚拟服务器,但它没有像我预期的那样尊重 UMASK。我错过了什么吗?

0 投票
1 回答
70 浏览

ruby-on-rails - 您如何预测您的 Rails 项目系统使用情况?

有没有办法计算运行我的 rails 应用程序的系统要求?(= 每月费用)

我主要对 Heroku 或 Digital Ocean 感兴趣。

0 投票
1 回答
665 浏览

ruby-on-rails - Rails 应用程序在使用 Unicorn/nginx 组合的 DigitalOcean 上没有响应

我正在使用 One-Click Ubuntu 12.10 Installation droplet 在 DigitalOcean 上为 Rails 4 开发的移动应用程序托管 API。因此 nginx 和 Unicorn 已预先配置并正在运行。当我尝试从 Web 浏览器上的 Rails 公共文件夹中打开文件时,它可以工作。

但是当我尝试使用routes.rb文件中定义的任何其他路径时,我没有得到任何答案。我的请求正在加载,直到超时。当我rails s -e production在服务器上键入时,这种情况会发生变化——然后一切都按预期工作。所以肯定是nginx什么的有问题。我错过了什么?

这是我的 nginxsites-enabled/default文件内容(我不知道这是否是要寻找的东西,但也许):

更新:这是我的nginx.conf文件,以防有帮助:

更新2:这里是我的unicorn.conf文件:

0 投票
1 回答
530 浏览

ruby-on-rails - Ubuntu 13.10 上的 PostgreSQL 9.3?

我刚刚在 DigitalOcean 上获得了一个 VPS,并在上面安装了 Ubuntu 13.10。我正在尝试为我的 Rails 应用程序设置 PostgreSQL。我插入deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main了 /etc/apt/sources.list.d/pgdg.list,然后我尝试使用deb http://apt.postgresql.org/pub/repos/apt/ saucy-pgdg mainand deb http://apt.postgresql.org/pub/repos/apt/ lucid-pgdg main(显然是运行sudo apt-get update && sudo apt-get upgrade),但运行时我不断收到此消息sudo apt-get install postgresql-9.3 pgadmin3

问题是即使我尝试 apt-getting postgresql-client-9.3 它告诉我我需要另一个包:

在那之后,它一直告诉我安装 libpq5,它不会让我安装。

对此的任何帮助将不胜感激。

谢谢!

0 投票
1 回答
61 浏览

ruby-on-rails-3 - 如何让rails 3在一段时间内做某事

我正在使用宝石:scottmotte / digitalocean 接缝是最好的。请通知我。

我可以使用创建服务器

但是我想在一段时间后检查一切是否正常,因为创建液滴至少需要 1 分钟。

我怎样才能让 Rails 在给定的时间内做一个 API 调用,然后根据结果做一些事情?有什么约定和模式吗?

非常感谢您,

0 投票
2 回答
1913 浏览

php - 服务器文件根目录的 PHP 文件找不到必要的文件夹

我正在尝试安装工艺 cms,但出现以下错误

这就是我的 index.php 文件夹的样子

工艺文件夹只是www上面的一个目录,不明白为什么找不到它。

这是我的 apache2.conf 文件中我认为有所作为的部分,文件很大而且我不知道如何在 nano 中复制整个内容

在此处输入图像描述