aaronpk / Watchtower

🏰 a minimal API for watching web pages for changes, roughly speaks the WebSub protocol
Apache License 2.0
42 stars 4 forks source link

How to start the server on localhost:PORT #10

Closed danielstaleiny closed 3 years ago

danielstaleiny commented 3 years ago

Hi, thank you for the project, I have been following your tutorial and I would like to test it locally before deploying it on the server. I feel like some parts of documentation is missing which is definatelly understandable but I would like to ask this.

I am a bit confused how I would start this project under localhost:3000 for example to be able to hit it from curl ?

I don't have apache installed and I just installed php locally and from the systemd script you described I run

cd /scripts

php watchtower which worked and 4 workers started with watchtower.pid indicating the proccess id.

My question is, how would I start the server on localhost:3000.

I tried both changing the $base_url to localhost:3000

and starting the server with php -S localhost:3000 watchtower.php

without much sucess.

Any help would be helpfull.