raidendotai / cofounder

ai-generated apps , full stack + generative UI
https://cofounder.openinterface.ai/
MIT License
3.31k stars 372 forks source link

Port number - why so low? #18

Open AshkanArabim opened 2 days ago

AshkanArabim commented 2 days ago

On Linux and MacOS, by default, port numbers below 1024 require sudo permissions to bind to. Because of this, I have to run sudo npm start every time I want to use this app. This is not so nice because:

This will probably get closed, but I still want to know why the app is bound to port 667. Why not 6670?

rowbot1 commented 2 days ago

agree with this

rowbot1 commented 2 days ago

I encountered an error during the installation process. After an hour of troubleshooting, I decided to run the installation as the root user, which ultimately resolved the issue. However, I would prefer not to have to use root privileges to install software, as it can pose security risks. Is there a way to troubleshoot or resolve the error without running as root?

Sinopsys commented 1 day ago

my quick hack for that was

for file in $(ag -l 667 . | grep -vE "node_modules|assets"); do sed "s/667/8888/" -i $file; done
for file in $(ag -l 'localhost:667'); do sed 's/localhost:667/localhost:8888/g' -i $file; done

cd api; PORT=8888 npm run start

(you can also grep instead of ag)

raidendotai commented 6 hours ago

agreed - will update ports thank you :)