htdocs/README.md
2024-11-02 11:20:01 +01:00

27 lines
654 B
Markdown
Executable File

# Website<br/>
This is all the code for the website (deadvey.com)<br/>
# 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/>
```crontab
* * * * * node /var/www/html/node/makeblogs.js
* * * * * node /var/www/html/node/newsletter.js
* * * * * node /var/www/html/node/updatefeed.js
etc...
```
# Newsletter
<br/>
If you want to add members to the newsletter, I store a file as /etc/newsletter_members.js:<br/>
```js
let members = ["member1@gmail.com","member2@outlook.com"]
if (typeof module !== 'undefined' && module.exports) {
module.exports = members;
}
```