You need to have BOT_API_KEY
environment variable set. You can do that separately
EXPORT BOT_API_KEY=your_api_key
or when starting the app:
BOT_API_KEY=your_api_key npm start
npm install -g forever
forever
npm install -g forever-service
forever-service
sudo forever-service install cr-bot --script bot.js -e "BOT_API_KEY=your_api_key BOT_DB_PATH=full_path_to_sql BOT_NAME=your_bot_name" -f " -c 'node --harmony_array_includes'"
sudo update-rc.d cr-bot defaults