Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyway to run npx serve constantly? #794

Open
Slee42069 opened this issue Jan 24, 2024 · 3 comments
Open

Anyway to run npx serve constantly? #794

Slee42069 opened this issue Jan 24, 2024 · 3 comments

Comments

@Slee42069
Copy link

hi everyone,

Im new here and new to using the epg pulling, ive managed to setup and run all the guides i want as i want them with cronjobs etc and i can serve the files which is great im using them currently so firstly thankyou everyone involved :)

but my question is can i run npm/npx run serve constantly at all? so the .xml files will be accessible without me having to login and run the command, when i run either they seem to run for a hour or two and then i cant pull them anymore and have to re run the command.

Ive tried looking through the different files on serve too see if there's anything relating to this and i cant find anything but i apologise if this is clearly obvious or been asked before

many thanks in advance :)

@Slee42069
Copy link
Author

Slee42069 commented Jan 29, 2024

i believe I've found a way too do this for anyone that's reading this and wondering how to do the same I used "forever" and ran the main script for serve in the epg directory :

npm install forever -g

forever start /epg/node_modules/serve/build/main.js

@DylanKarimagoko
Copy link

Hi im also try to deploy an epg is there a special configuration in the vercel.json that you add or you have to login to vercel and run a command please help

@DylanKarimagoko
Copy link

This is my config

{
"version": 2,
"builds": [
{
"src": "./node_modules/serve/build/main.js",
"use": "@vercel/node"
}
],
"routes": [
{

    "src": "/(.*)",
    "dest": "/"
    }
]

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants