Skip to content

Instantly share code, notes, and snippets.

@jwmatthews
Created September 29, 2016 17:54
Show Gist options
  • Save jwmatthews/d551646e3afc4ce8aba779e3cbee0d67 to your computer and use it in GitHub Desktop.
Save jwmatthews/d551646e3afc4ce8aba779e3cbee0d67 to your computer and use it in GitHub Desktop.
$ cat run_dev_servers_in_tmux.sh
#!/bin/sh
su -l -c 'tmux new -d -s react_server \"cd /vagrant && npm start\"' vagrant
su -l -c 'tmux new -d -s flask_server \"cd /vagrant && start_dev_api.sh\"' vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment