Skip to content

Instantly share code, notes, and snippets.

@mcr
Created June 27, 2019 15:44
Show Gist options
  • Save mcr/edf3a31ecfeb78564b46ae3b2ff00742 to your computer and use it in GitHub Desktop.
Save mcr/edf3a31ecfeb78564b46ae3b2ff00742 to your computer and use it in GitHub Desktop.
starting mud_telemetry
export LD_LIBRARY_PATH=/usr/local/rvm/rubies/ruby-2.6.3/lib/
. /etc/profile.d/rvm.sh
rvm use 2.6.3 >/dev/null
export CERTDIR=/app/certificates
export SERVCERT=${CERTDIR}/jrc_prime256v1.crt
export SERVKEY=${CERTDIR}/jrc_prime256v1.key
RAILS_ENV=${RAILS_ENV-production}
export RAILS_ENV
cd /app/fountain
root@mud-supervisor:/app/fountain# bundle exec rake fountain:mud_telemetry &
root@mud-supervisor:/app/fountain# ls ~
mud_telemetry.sock setup start
root@mud-supervisor:/app/fountain# export TERM=dumb
root@mud-supervisor:/app/fountain# bundle exec rails console -e production
2.6.3 :003 > Device.all.each { |dev| puts dev.eui64, dev.name }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment