Lifann / ssr_subscribe_tool_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to use

deploy to netlify

Deploy to Netlify

netlify setting

  • get your access_token at Personal access tokens
  • set env variable ACCESS_TOKEN and DOMAIN at build-environment-variables(note:domain is your netlify site link)
  • set your webhook at build-hooks, then copy the link.(note: when a submit is trigger, a rebuild will happen)
  • set you form notify choose outgoing-notifications then paste your webhook url

add subscribe source

although netlify was only for static sites ,but with forms and webhook it can be dynamic. there is a litter trick:when a form is submit,netify will visit a outgoing url,we set then outgoing url with is's buid hook! wow!

  • visit `{your netlify link }/sub
  • submit the subscribe form
  • wait a few minute (rebuild..)

deploy on your own server

pre build

  • update dependence use composer composer install
  • set up your env variable ACCESS_TOKEN and DOMAIN at .env files
  • start php buildin server php -S 127.0.0.1

add node and subscribe

  • add node : visit {your domain link }/add?node={your ssr link}
  • add subscribe : visit {your domain link }/sub?link={your sub link}

About

License:MIT License


Languages

Language:PHP 98.9%Language:Shell 1.1%