我有亚马逊EB.with(Puma,Nginx)64bit Amazon Linux 2014.09 v1.0.9运行Ruby 2.1(Puma).
突然,当我部署我的项目时,在我的终端中发送下一个错误: 错误:等待命令完成时超时
注意:之前没有发生过.
我在控制台中看到了该事件,这是日志: 更新环境操作已完成,但命令超时.尝试增加超时时间.有关更多信息,请参阅故障排除文档
我已经在没有成功的情况下增加时间.
option_settings:
- namespace: aws:elasticbeanstalk:command
option_name: Timeout
value: 1800
Run Code Online (Sandbox Code Playgroud)
Health需要很长时间才能将其置为绿色(aprox,20分钟),然后用新的更改(aprox,其他20分钟)更新实例需要很长时间,(我只有1个实例).
我怎样才能看到其他日志?有什么建议?
amazon ruby-on-rails amazon-ec2 web-deployment amazon-elastic-beanstalk
我需要启用 postgreSQL 的重音符号。这是我的docker-compose.yml,但不起作用。有小费吗?谢谢。
db:
image: postgres
ports:
- 5432
environment:
DB_UNACCENT: true
mailcatcher:
image: aboutsource/mailcatcher
ports:
- "1080:1080"
web:
build: .
command: passenger start --port 3000
volumes:
- .:/myapp
environment:
- RAILS_ENV=development
ports:
- "3000:3000"
- "25:25"
- "587:587"
links:
- db
- mailcatcher
Run Code Online (Sandbox Code Playgroud) 我需要用 apipie-rails 生成一个 API,但我想为像这样的“X-User-Email”或“X-User-Token”这样的标题生成文档。
我有这个资源描述:
resource_description do
short 'Cars'
formats ['json']
param 'X-User-Email <X-User-Email>', String, :desc => "HEADER param: Email must correspond to TOKEN owner", :required => false
param 'X-User-Token <X-User-Token>', String, :desc => "HEADER param: Token must correspond to EMAIL owner", :required => false
error :code => 401, :desc => "Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token"
end
Run Code Online (Sandbox Code Playgroud)
但是,param在这种情况下,论点对我没有帮助。
这可能吗?
我有一个问题可能有点傻,我正在尝试部署一个带代码的静态网站,但我无法理解文档:
https://codeship.com/documentation/continuous-deployment/deployment-to-aws-codedeploy/
目前设置的方式有点不同,我不知道在"本地路径"输入中写什么
当我运行如下任务时,我的 gemfile 或包出现错误:
docker exec -it webapp_web_1 bundle exec rake db:migrate
Run Code Online (Sandbox Code Playgroud)
错误:无法找到 Gemfile 或 .bundle/ 目录
或这个命令:
docker-compose logs worker
log:
Attaching to webapp_worker_1
worker_1 | Could not locate Gemfile or .bundle/ directory
Run Code Online (Sandbox Code Playgroud)
Dockerfile:
# === 1 ===
FROM phusion/passenger-ruby22:0.9.18
MAINTAINER Israel Barba Aceves "israel@yotepresto.com"
# Set correct environment variables.
ENV HOME /root
RUN apt-get update && apt-get install -y libqt4-dev libqtwebkit-dev imagemagick
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# === 2 ===
# Start Nginx / Passenger …Run Code Online (Sandbox Code Playgroud) 我如何使用$ resoure从调用中检索值并在JS中使用它,不仅仅在我的数据绑定视图中?
我有这个JSON:
{
"id": 18,
"name": "adsfadsf",
"type_of_dish": "Tacos",
"cost": "5.95",
"notes": "bla bla bla",
"totalrecipes": 1,
"dish_recipes_attributes": [
{
"recipe_id": 28,
"no_recipe": 1,
"name": "tacos al pastor piña",
"cost_portion": "5.95"
}
]
}
Run Code Online (Sandbox Code Playgroud)
在我的JS中:
$scope.dish = Dish.get({id: $routeParams.id});
Run Code Online (Sandbox Code Playgroud)
我需要获得值"totalrecipes",我已经尝试过这个没有成功:
var totalrecipes = $scope.dish.totalrecipes;
console.log(totalrecipes); //Undefined
console.log($scope.dish); // [object Object]
Run Code Online (Sandbox Code Playgroud)
但在我看来,一切都还可以:
{{dish.totalrecipes}} // 1, It's OK!
Run Code Online (Sandbox Code Playgroud) docker ×2
amazon ×1
amazon-ec2 ×1
amazon-s3 ×1
angularjs ×1
api ×1
codeship ×1
deployment ×1
javascript ×1
postgresql ×1
redis ×1
ruby ×1
sidekiq ×1