mirror of
https://github.com/asapach/peerflix-server.git
synced 2026-04-25 14:45:50 +03:00
[GH-ISSUE #87] running on 80 port #288
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @salientnet on GitHub (Nov 7, 2016).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/87
Hi,
I am using the peerflix-server app now and it is working well.
But I want to run on 80 port.
Could do you explain about it?
Thanks,
Salient
@asapach commented on GitHub (Nov 7, 2016):
You can set
PORTenvironment variable like so (in bash):But then you'll need to run it under root or sudo (because ports under 1024 are restricted), and I would not recommend it, because it's a potential security vulnerability.
Instead I would recommend setting up a reverse proxy server like nginx or apache to proxy the traffic from peerflix-server.
@salientnet commented on GitHub (Nov 8, 2016):
Thanks for your help, but I tried and it is not working yet.
@salientnet commented on GitHub (Nov 8, 2016):
Hi asapach,
I can run the app with port 80 now.
And i want to run the app as grunt with persistence
could you help me about it?
Thanks,
Salient
@asapach commented on GitHub (Nov 8, 2016):
What do you mean by running it as grunt? What kind of persistence do you have in mind?
@salientnet commented on GitHub (Nov 8, 2016):
i think the app is running with grunt serve command to customize.
Otherwise it is running with peerflix-server.
Now if i run the grunt serve and the command end, the app is not running.
Could i execute it continuously?
@asapach commented on GitHub (Nov 8, 2016):
You should not be running it via grunt. This is only for development mode. You should install it globally:
npm install -g peerflix-serverand run it as a daemon: https://github.com/asapach/peerflix-server#daemonTo run it continuously use
forever: https://github.com/foreverjs/forever@salientnet commented on GitHub (Nov 8, 2016):
yeah, but I changed some html and it didn't implement when i run the with peerflix-server.
@asapach commented on GitHub (Nov 8, 2016):
OK, instead of running
grunt serveryou should just be able to run<path to peerflix-server>/server/bin.js, and then you should be able to use it withforever@salientnet commented on GitHub (Nov 8, 2016):
could you teach me in more details?
@varunchopra commented on GitHub (Dec 29, 2016):
Running it with with
foreverdoesn't lead to anything unfortunately. Page doesn't load.@salientroot Run this,
npm install -g foreverforever start $(which peerflix-server)@asapach commented on GitHub (Dec 30, 2016):
@chopraaa, works fine for me. Enable the logs and see if there are any errors: https://github.com/foreverjs/forever#command-line-usage (I'd rather create a separate issue if there are.)
Having said that, I still don't recommend running it on port 80 directly.