Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http: proxy error: dial tcp #689

Open
ayelen117 opened this issue Nov 24, 2018 · 1 comment
Open

http: proxy error: dial tcp #689

ayelen117 opened this issue Nov 24, 2018 · 1 comment

Comments

@ayelen117
Copy link

Hello,
I having the next problem and I can´t to run the application:
http: proxy error: dial tcp 192.168.0.20:8080: connect: connection refused

This is my boxfile:

run.config:
  engine: php

  engine.config:
    runtime: php-7.1

    cache_dirs:
      - vendor
      - packages
      - node_modules

    document_root: public

    extensions:
      - pdo
      - mbstring
      - tokenizer
      - session
      - zip
      - dom
      - xml
      - ctype
      - xmlwriter
      - pdo
      - mongodb
      - pdo_mysql

    extra_steps:
      - npm install

deploy.config:
  before_live:
    web.main:
      - mkdir -p storage/framework/{sessions,cache,views}
      - php artisan migrate

data.db:
  image: nanobox/mysql:5.6

data.storage:
  image: nanobox/unfs

web.main:
  start: start-php

  writable_dirs:
    - bootstrap/cache

  log_watch:
    laravel[error]: storage/logs/laravel.log

  network_dirs:
    data.storage:
      - storage

data.mongodb:
  image: nanobox/mongodb:3.0
  config:
    objcheck: true
    log_verbosity: 'v'
    directoryperdb: true
    logappend: true
    nojournal: false
    noscripting: false

What am I doing wrong?

Thanks in advance.

@danhunsaker
Copy link
Contributor

You need to also start the web server. In this case, that's done by adding start-apache to your start section (the PHP guides show this, too, for further reference):

web.main:
  start:
    fpm: start-php
    www: start-apache

Note that fpm and www there can be anything you like; those names are more for your reference than anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants