Giter VIP home page Giter VIP logo

Comments (8)

nilesr avatar nilesr commented on May 29, 2024

It looks like Vesta CP uses apache and nginx as its web frontend. Both of these can be configured to reverse proxy to a different port based on subdomain, so for example you could run awoo on port 8080 and have your regular web server forward requests that it recieves to that subdomain to awoo. I don't know how to configure that from Vesta CP, I would suggest just directly modifying the config files for your webserver.

from awoo.

robotrono avatar robotrono commented on May 29, 2024

Thanks for the response, I'll try to read the vesta docs.

from awoo.

Fieel avatar Fieel commented on May 29, 2024

@nilesr is it possible to set up unicorn to run sinatra with a web socket so i can use nginx listening on said socket instead of the automatic "rerun" server on localhost:8080 that's automatically set up in this repo?

I'm sorry for the noob question, i'm also new to ruby, learning it building this project.

from awoo.

nilesr avatar nilesr commented on May 29, 2024

from awoo.

Fieel avatar Fieel commented on May 29, 2024

@nilesr As of now, when the service starts the server, how does it work? I understood how sinatra works, but i'm still missing the glue between the service you use to run the web server and sinatra intself, how does "rerun" fit into this stack of tools?

from awoo.

nilesr avatar nilesr commented on May 29, 2024

from awoo.

Fieel avatar Fieel commented on May 29, 2024

@nilesr I have problems with permissions and how the repo has been set up to work with the Makefile :(.

When the service listed in the Makefile runs on its own my connections get rejected by NGINX (which is simply proxying 127.0.0.1:8080) for some reason (nginx errorl log):

image

If i manually run the following command (which i'm having an hard time understanding):

sudo /usr/bin/env rerun -b -p _watch rackup

the server actually starts and i can reach 127.0.0.1:8080 through nginx:

awoo-problem3

At this point, i can hit awoo.fieel.space (my domain) and reach the sinatra application, i get an exception though:

awoo-problem4

I didn't touch the source code yet - at this point i have no idea how i should approach the problem.

I come from a dotnet/angular/react environemnt, that might explain why i'm having an hard time understanding all of this?

from awoo.

nilesr avatar nilesr commented on May 29, 2024

from awoo.

Related Issues (19)

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.