A tool for auto-posting on social media networks.
💡 The environment variables are automatically retrieved from the
.envfile and registred to theprocess.envobject for access during development. Use.env-tmpfile as reference to make own personal.envfile.
💡 It is advised to not push the
.envfile in production repository, because it contains sensible and confidential data. either delete it or add it to.gitignore.
To deploy the project in a node environment:
- Push the repository to a node production server using a service like Heroku.
💡 As this is not an HTTP Web app, but a worker process, the service should be set for that.
ℹ️ For Heroku run
heroku ps:scale web=0 worker=1 -a app-namein the CLI.
💡
workercorresponds to the name given in theProcfilefile.
- Manually register the environment variables in the node production server
ℹ️ For Heroku, go to the app's Settings / Config Vars.
- Install the dependencies:
npm i- Start server for production:
npm start- Runtime: NodeJS
- Package Manager: NPM
- Editor: Sublime Text
- ⚛️ Core: NodeJS