Comments (8)
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.
Thanks for the response, I'll try to read the vesta docs.
from awoo.
@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.
from awoo.
@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.
from awoo.
@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):
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:
At this point, i can hit awoo.fieel.space (my domain) and reach the sinatra application, i get an exception though:
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.
from awoo.
Related Issues (19)
- API issue HOT 1
- Actually show real errors instead of the default sinatra ones HOT 12
- How to login in admin panel? HOT 1
- Shouldn't the Content-Type of the API response be application/json? HOT 11
- Mysql2::Error at /post HOT 3
- Mysql error while trying to view a thread HOT 3
- Dashchan integration is broken, only displaying /search/ which isn't even a board. not sure how it's happening
- >>>/google.com/ should link to /google.com/ not google.com/
- this text crashes the renderer
- Run on windows HOT 1
- Captcha word list missing from repo HOT 2
- Error happened on submitting comment HOT 2
- nginx proxy lost session [fixed] HOT 2
- When running sudo make install it occurred an error HOT 1
- web fail HOT 12
- popular fails to load
- Cannot successfully launch app HOT 1
- Let user define a different port HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awoo.