Bowerstalk安装凉亭

朱宏荣

我正在使用beantalk来部署在AWS EC2上。我的项目使用Bower来管理库的依赖关系。(但是我项目的主要语言是python-flask。)

据我所知,我可以通过.ebextensions config安装其他软件包。我安装了Redis。

packages: 
  yum:
    gcc-c++: [] 
    make: []
sources:
  /home/ec2-user: http://download.redis.io/releases/redis-2.8.4.tar.gz
commands:
  redis_build:
    command: make
    cwd: /home/ec2-user/redis-2.8.4
  redis_config_001:
    command: sed -i -e "s/daemonize no/daemonize yes/" redis.conf
    cwd: /home/ec2-user/redis-2.8.4
  redis_config_002:
    command: sed -i -e "s/# maxmemory <bytes>/maxmemory 500MB/" redis.conf
    cwd: /home/ec2-user/redis-2.8.4
  redis_config_003:
    command: sed -i -e "s/# maxmemory-policy volatile-lru/maxmemory-policy allkeys-lru/" redis.conf
    cwd: /home/ec2-user/redis-2.8.4
  redis_server:
    command: src/redis-server redis].conf
    cwd: /home/ec2-user/redis-2.8.4

我添加了npm和bower,但是它不起作用。

packages: 
  yum:
    gcc-c++: [] 
    make: []
sources:
  /home/ec2-user: http://download.redis.io/releases/redis-2.8.4.tar.gz
commands:
  redis_build:
    command: make
    cwd: /home/ec2-user/redis-2.8.4
  redis_config_001:
    command: sed -i -e "s/daemonize no/daemonize yes/" redis.conf
    cwd: /home/ec2-user/redis-2.8.4
  redis_config_002:
    command: sed -i -e "s/# maxmemory <bytes>/maxmemory 500MB/" redis.conf
    cwd: /home/ec2-user/redis-2.8.4
  redis_config_003:
    command: sed -i -e "s/# maxmemory-policy volatile-lru/maxmemory-policy allkeys-lru/" redis.conf
    cwd: /home/ec2-user/redis-2.8.4
  redis_server:
    command: src/redis-server redis].conf
    cwd: /home/ec2-user/redis-2.8.4
  npm_install:
    command: "yum install -y npm"
  bower_install:
    command: "npm install -g bower"
  bower_install_packages:
    command: bower install

我总是喜欢这样的错误。

Upload Complete.
INFO: Environment update is starting.                               
INFO: Deploying new version to instance(s).                         
ERROR: [Instance: i-41397fb2 Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: [CMD-AppDeploy/AppDeployStage0/EbExtensionPreBuild] command failed with error code 1: Error occurred during build: Command bower_install failed.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].

我怎么解决这个问题?

朱宏荣

https://gist.github.com/growingdever/8eb2ae8e5793b9c1cd09

我通过上面的配置解决了这个问题。(该配置是我写的。)

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

凉亭安装错误

来自分类Dev

凉亭安装错误

来自分类Dev

凉亭未更新或安装

来自分类Dev

无法在Openshift上安装凉亭

来自分类Dev

如何用凉亭安装海图

来自分类Dev

安装时为什么凉亭挂着?

来自分类Dev

凉亭安装-失败,原因是ETIMEDOUT

来自分类Dev

.bowerrc选项,使安装凉亭时采用--save

来自分类Dev

凉亭安装-失败,原因是ETIMEDOUT

来自分类Dev

.bowerrc选项,使安装凉亭时采用--save

来自分类Dev

如何凉亭安装最新的适用版本?

来自分类Dev

安装凉亭时遇到的校验和问题

来自分类Dev

如何在流星下安装凉亭包?

来自分类Dev

凉亭安装失败,因为我没有安装某些东西

来自分类Dev

安装凉亭后缺少的bower_components文件夹

来自分类Dev

通过凉亭安装聚合物冻结

来自分类Dev

配置凉亭仅安装dist文件夹

来自分类Dev

如何使用凉亭安装聚合物铁元素?

来自分类Dev

我在安装凉亭时遇到问题,如何解决?

来自分类Dev

进行凉亭安装时,Visual Studio Online MSBuild失败

来自分类Dev

凉亭安装modernizr ... modernizr.js在哪里?

来自分类Dev

我在安装凉亭时遇到问题,如何解决?

来自分类Dev

包括凉亭安装在layout.jade中的问题

来自分类Dev

凉亭安装ECMDERR错误-溜角发电机

来自分类Dev

凉亭安装angular-touch没有给我最新版本

来自分类Dev

每当我尝试安装凉亭时出现“错误:EACCES,mkdir”

来自分类Dev

无法找到合适的角度版本,带有角度动画模块的凉亭安装错误

来自分类Dev

凉亭安装'bower-angular-translate-loader-static-files.git'时出错

来自分类Dev

字体真棒图标在开发过程中无法正确显示,安装了凉亭