readme changed
This commit is contained in:
parent
a864ff2e03
commit
2066864f03
31
README.md
31
README.md
@ -1,9 +1,26 @@
|
|||||||
# htdocs
|
# Website<br/>
|
||||||
Files for my website (deadvey.com)
|
This is all the code for the website (deadvey.com)<br/>
|
||||||
|
|
||||||
See https://github.com/DeaDvey/node for the nodeJS files
|
# Node
|
||||||
|
The nodejs code that is executed in the background is in /node<br/>
|
||||||
|
You can execute the node code in crontab (`crontab -e`)<br/>
|
||||||
|
eg:<br/>
|
||||||
|
```
|
||||||
|
* * * * * node /var/www/html/node/makeblogs.js
|
||||||
|
* * * * * node /var/www/html/node/newsletter.js
|
||||||
|
* * * * * node /var/www/html/node/updatefeed.js
|
||||||
|
|
||||||
# TODO
|
etc...
|
||||||
Add relevant links to how JS works, linking to repo
|
|
||||||
Mirror on Gitlab
|
```
|
||||||
Make all webpages work with nodejs fully preloaded, so no client side JS neccersarry
|
|
||||||
|
# Newsletter
|
||||||
|
<br/>
|
||||||
|
If you want to add members to the newsletter, I store a file as /etc/newsletter_members.js:
|
||||||
|
```
|
||||||
|
let members = ["member1@gmail.com","member2@outlook.com"]
|
||||||
|
|
||||||
|
if (typeof module !== 'undefined' && module.exports) {
|
||||||
|
module.exports = members;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user