Skip to main content

remux allows you to run your local project on multiple remote machines in parallel

Project description

rmux

rmux allows you to run your local project on multiple remote machines in parallel.

The command names comes from remote-tmux as it allows multiplexing commands on multiple remote machines, synchronized.

The original purpose was to allow testing local changes to a project on other platforms, like running tox on another distribution.

Usage

# run df locally
rmux df

# close tmux session
exit

# run df on two remote hosts, syncronized windows
HOSTS="node1 node2" rmux df

# run a script downloaded from the web (installs pip)
rmux -w https://bootstrap.pypa.io/get-pip.py

If you fail to define the HOSTS variable the tool will default to localhost but it will still use its logic of doing a rsync and running commands using tmux and ssh.

How it works

rmux will detect current project by looking for the .git folder it in current directory or its parents. If it fails to find any .git folder, it will skip the rsync part.

The script will not rsync .gitignored files but it will sync untracked files.

The destination folder on remote machines is ~/.cache/.rmux/<projectname> which will also become default directory.

The remote user is based on host names or your ssh configuration.

Installation

pip install rmux

While rmux is currently only a pure bash script, I used pip wheel as a way to distribute it as it cross platform and easy to use. In addition, it allows me to easily upgrade it.

If you prefer you can just download the shell script and add it to your path.

See also

  • tmux - terminal multiplexer
  • tmux-xpanes - auto-window layout for tmux, a current requirement for rmux. Still, it should be possible to avoid using it if you have only one remote host, just make a feature request and I can implement it.
  • direnv - define environment variables specific to current directory. This can be very handy if you want to have different set of HOSTS for each project and avoid mentioning them on the command line.
  • rtox which allows running tox on remote machines this being the original project. With rmux you will no longer need rtox as you can just do rmux tox instead of rtox, the big difference being that the session is not closed automatically and that you can now run on multiple remote hosts instead of just one.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rmux-1.0.4.tar.gz (456.8 kB view details)

Uploaded Source

Built Distribution

rmux-1.0.4-py2-none-any.whl (10.5 kB view details)

Uploaded Python 2

File details

Details for the file rmux-1.0.4.tar.gz.

File metadata

  • Download URL: rmux-1.0.4.tar.gz
  • Upload date:
  • Size: 456.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for rmux-1.0.4.tar.gz
Algorithm Hash digest
SHA256 60f2591fa9bb953d010611d3d5472b0d7ac1cb4da0d81c578e35cf0cde1a1a26
MD5 7f1180425eb68c8f08873c942ef45081
BLAKE2b-256 0cb85a659ee12ec1d9442808e93748c6e17b134b798d1a8b30922363209098c4

See more details on using hashes here.

File details

Details for the file rmux-1.0.4-py2-none-any.whl.

File metadata

  • Download URL: rmux-1.0.4-py2-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for rmux-1.0.4-py2-none-any.whl
Algorithm Hash digest
SHA256 f64a6cb63c854281478a910b0e25e86be63e9b0a0400d7ab967de13d8cb89ee1
MD5 8e18259953d73caab2e08ec10b26c1f0
BLAKE2b-256 94dc03c21a93e87d491133623b94f1f521016b85bbac85ca2234c88edf53a4f9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page