Closed pgibler closed 7 years ago
This is my bash script, if that helps at all. I'm running Ubuntu 16.04.
#!/usr/bin/env bash
# TextBelt user.
USER=$1
# Application directory.
TEXTBELT_DIR=/opt/textbelt/
# Update apt-get.
sudo apt-get -y update
# Install redis dependencies.
sudo apt-get -y install build-essential tcl
# Install redis.
sudo apt-get -y install redis-server
# Start redis-server
redis-server start &
# Don't interact with mutt.
DEBIAN_FRONTEND=noninteractive
# Install mutt.
sudo apt-get -y install mutt
# Install a local nginx for reverse proxy / load balancing and IP rate limiting.
sudo apt-get install -y nginx
# Screen is just useful.
sudo apt-get install -y screen
# Need unzip.
sudo apt-get -y install unzip
# Install nodejs.
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
USER=vagrant
# Application directory.
TEXTBELT_DIR=/opt/textbelt/
# Install textbelt.
HOME=$TEXTBELT_DIR
sudo mkdir -p $TEXTBELT_DIR
sudo chmod 777 $TEXTBELT_DIR
sudo usermod -a -G www-data $USER
cd $TEXTBELT_DIR
wget https://github.com/typpo/textbelt/archive/master.zip
unzip master.zip
cd textbelt-master
touch server/torlist
npm install
nodejs server/app.js &
Sorry for the trouble - we just refactored some code and this slipped through.
No worries at all. Good to know you are one step ahead!
Is the current head revision of git good to go for running the standalone server?
Answered my own question - that call is fixed in the master branch so I shouldn't see this issue
https://github.com/typpo/textbelt/blob/master/server/app.js#L31
I have a Vagrant box that I'm bootstrapping with a bash script to setup a standalone textbelt server.
All dependencies and executables get installed correctly, but when I attempt to run textbelt, I get the following error: