首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在本地主机上飞执行失败

在本地主机上飞执行失败
EN

Stack Overflow用户
提问于 2016-11-10 09:26:43
回答 1查看 237关注 0票数 2

我有一个简单的任务要在本地concourse实例上执行:

build-frontend.yml

代码语言:javascript
复制
---
platform: linux

image_resource:
  type: docker-image
  source:
    repository: node
    tag: 'latest'

inputs:
- name: client-devops

run:
  path: client-devops/scripts/test

任务执行如下:

代码语言:javascript
复制
client-devops daka$ fly -t frontend execute --config build-frontend.yml
executing build 1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 8080: Connection refused
gzip: invalid magic
tar: Child returned status 1
tar: Error is not recoverable: exiting now
exit status 2

目标如下:

代码语言:javascript
复制
client-devops daka$ fly targets
name          url                         expiry                       
frontend      http://127.0.0.1:8080       Fri, 11 Nov 2016 09:13:55 UTC

为什么它说不能连接到本地主机,我可以从我的浏览器连接到UI?

EN

回答 1

Stack Overflow用户

发布于 2016-11-10 18:10:10

您的外部URL不能配置为localhost127.0.0.1 -它必须可由其他机器访问。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40524004

复制
相关文章

相似问题

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