首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Travis + Openshift未部署到openshift

Travis + Openshift未部署到openshift
EN

Stack Overflow用户
提问于 2015-02-24 21:09:30
回答 1查看 462关注 0票数 1

我们在能否部署到openshift方面存在问题。部署过程运行,但实际上并没有将任何新代码部署到我们的齿轮上。

这里是我的travis文件:

代码语言:javascript
复制
language: node_js

node_js:
  - '0.10'

before_script:
  - npm install -g bower grunt-cli
  - gem install sass
  - bower install

services: mongodb

before_deploy:
  - rm -rf .sass-cache .tmp client e2e node_modules server styleguide *.*
  - mv dist/* ./
  - rm -rf dist
  - ls

notifications:
  slack: REMOVED

deploy:
  - provider: heroku
    api_key: REMOVED
    skip_cleanup: true
    buildpack: https://github.com/ddollar/heroku-buildpack-multi.git
    app:
      qa: snd-onair-webclient-qa
      production: snd-onair-webclient-production
  - provider: openshift
    user: rbrookfield@352inc.com
    password:
      secure: REMOVED
    skip_cleanup: true
    clean_up: false
    domain: onairtest
    app:
      staging: snd

branches:
  only:
    - dev
    - staging
    - qa
    - production

--这里是我的travis部署的尾声:

代码语言:javascript
复制
authenticated as rbrookfield@352inc.com
found app snd
Generating public/private rsa key pair.
Your identification has been saved in .dpl/id_rsa.
Your public key has been saved in .dpl/id_rsa.pub.
The key fingerprint is:
1d:0f:07:49:08:90:f3:1a:2f:b7:c3:9a:c4:19:bd:c7 testing-worker-linux-4554f670-1-8413-linux-2-14078509
The key's randomart image is:
+--[ RSA 2048]----+
|    .o.. oo.     |
|    o   . ..     |
|     o    o .    |
|    ...  . =     |
|    .+. S . .    |
|   .oooo         |
|    ++..E        |
|   . .+.         |
|    o. .         |
+-----------------+
dpl.3
Deploying application
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
  git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
  git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Warning: Permanently added 'snd-onairtest.rhcloud.com' (RSA) to the list of known hosts.
Everything up-to-date
Done. Your build exited with 0.

我还为openshift设置了一个ssh密钥,因为它是一个私有存储库,我能够从实例中访问它。我不知道这是怎么回事。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-02-24 22:36:18

似乎是个常见的问题。您需要在travis.yml文件中执行提交,以便反映更新。下面是在我的代码中,我在测试后进行提交的部分:

after_success:

  • git配置--全局user.email "travis@localhost.localdomain“
  • git配置--全局user.name "Travis CI“
  • git add --全部
  • git提交-am "Travis change“

还需要注意的是,用户可以通过执行以下操作来执行构建操作并只部署构件:

after_success:

  • 格朗特建筑
  • cd区
  • git init
  • git配置--全局user.email "travis@localhost.localdomain“
  • git配置--全局user.name "Travis CI“
  • git add --全部
  • git提交-am "Travis change“
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28706304

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档