Git Product home page Git Product logo

Comments (8)

Wazabiii avatar Wazabiii commented on June 8, 2024 4

I had the same issue.

  • Login to the container:
    docker exec -it kodingdockercompose_koding_1 bash

  • Go to the config dir:
    root@23597a836aa5:/opt/koding# cd config

  • List all files containing dev.koding.com:
    root@23597a836aa5:/opt/koding/config# grep -ri dev.koding.com .

Should return:

./generateKonfig.coffee:      'dev.koding.com' : '127.0.0.1'
./main.default.coffee:    main: options.host ? 'dev.koding.com'
./main.default.coffee:  options.hostname or= "dev.koding.com"
./credentials.default.coffee:    redirectUri: 'http://dev.koding.com:8090/-/oauth/github/callback'
./credentials.default.coffee:    redirectUri: "http://dev.koding.com:8090/-/oauth/facebook/callback"
./credentials.default.coffee:    redirect_uri: "http://dev.koding.com:8090/-/oauth/google/callback"
./credentials.default.coffee:    redirect_uri: "http://dev.koding.com:8090/-/oauth/twitter/callback"
./credentials.default.coffee:    redirect_uri: "http://dev.koding.com:8090/-/oauth/linkedin/callback"
./main.dev.coffee:    main: options.host ? 'dev.koding.com'
./main.dev.coffee:  options.hostname or= "dev.koding.com"
  • Edit each file and replace dev.koding.com with your host.
    tips for vi:
:%s/dev.koding.com/localhost/g
:wq
root@23597a836aa5:/opt/koding/config# vi ./generateKonfig.coffee
root@23597a836aa5:/opt/koding/config# vi ./main.default.coffee
root@23597a836aa5:/opt/koding/config# vi ./credentials.default.coffee
root@23597a836aa5:/opt/koding/config# vi ./main.dev.coffee
  • Now you shouldn't see any dev.koding.com:
root@23597a836aa5:/opt/koding/config# grep -ri dev.koding.com .
root@23597a836aa5:/opt/koding/config#
  • Exit the container:
root@23597a836aa5:/opt/koding/config# exit
exit
  • Restart the stack
    docker-compose restart

now I have localhost on the screen and no crash :)

from koding.

unixfox avatar unixfox commented on June 8, 2024 2

You need to add in the docker-compose.yml at the 6th line (command):

  • --hostname for the main domain
  • --host for the domain of the instance (the API will communicate with it)

Example:

command: --version master --hostname example.org --host koding.example.org

from koding.

 avatar commented on June 8, 2024 1

i dont know yet im completely new in docker and have no experience

from koding.

abdulrahmanmasri avatar abdulrahmanmasri commented on June 8, 2024

the same issue, anyone help ?

from koding.

 avatar commented on June 8, 2024

you can change the config using

docker exec -it koding-docker-compose_koding_1 bash

from koding.

abdulrahmanmasri avatar abdulrahmanmasri commented on June 8, 2024

Which file please ?

from koding.

fahadysf avatar fahadysf commented on June 8, 2024

Guys, any luck on this?

from koding.

daton89 avatar daton89 commented on June 8, 2024

I changed the host and hostname as @unixfox suggested and it worked!

But the koding service still try to connect to koding.mydomain.com/kontrol/kite and fail.

It try to reconnect infinitely and I'm stuck in the stack initialize, when i check the access token for a digital ocean stack it goes in timeout.

from koding.

Related Issues (20)

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.