Skip to content

Instantly share code, notes, and snippets.

@otsuarez
Created June 25, 2014 14:20
Show Gist options
  • Save otsuarez/d81db696353238c31a2e to your computer and use it in GitHub Desktop.
Save otsuarez/d81db696353238c31a2e to your computer and use it in GitHub Desktop.
starting a local asciinema.org server
sessionname asciinema
screen -t rails 0 bash -c 'source ~/.rvm/scripts/rvm ; rvm use 2.1.1 ; cd ~/src/github/asciinema.org ; bundle exec rails server'
screen -t sidekiq 1 bash -c 'source ~/.rvm/scripts/rvm ; rvm use 2.1.1 ; cd ~/src/github/asciinema.org ; bundle exec sidekiq'
detach
#!/bin/bash
sudo /etc/init.d/postgresql restart
screen -c ~/bin/asciinema.screenrc
echo "open http://127.0.0.1:3000/"
echo "you can start recording your shell with asciinema rec"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment