Giter Club home page Giter Club logo

ishi's People

Contributors

suin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

quiga

ishi's Issues

Replacing host header

As a lot of people do, we also use Dinghy for our development. Of course we're using docker containers. I'm wondering something, and I hope you can help me with this.

When using ishi with the following command:

~/go/bin/ishi --listen 8080 app.XXX.docker

I can share my LAN ip to my colleagues, and they can check out this new awesome website we're building.

I'm having one problem though and I don't know who to fix it. When sharing this IP, it seems like the $_SERVER['HTTP_HOST'] in PHP is replaced with app.XXX.docker instead of the LAN address:PORT.

When using assets/css, this path cannot be resolved. For example:

	<link href="http://app.XXX.docker/media/icons/share.png" rel="apple-touch-icon-precomposed">
	<link rel="stylesheet" href="http://app.XXX.docker/css/main.css">

When requesting a URL like http://app.XXX.docker/css/main.css this cannot be found. It can only be accessed by docker container itself, not by the shared URL (LAN).

How to get along with this? Do you understand what i'm trying to say?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.