Table of Contents
remote_target lets you synchronize project directories to remote machines via SFTP on a per-project basis. This is done using a .remote_target file in the project root which specifies the hostname, connection information and remote directory to push to.
To simply install remote_target on a Linux machine, head on over to the releases and download the latest binary for your platform, and place it in a directory that's accessible in your path (for example ~/.local/bin). That's it!
If a prebuilt binary isn't available for your platform yet, you can install from source using the instructions below.
To install from source, follow the instructions below:
In order to build the tool you'll need to install the following tools:
- Python >=3.7 (either from the official website, your system package manager or a python version manager)
- Poetry (official instructions here)
- Clone the repo
git clone https://github.com/dylan-robins/remote_target.git cd remote_target - Install Python library dependencies
poetry install - Build the project
poetry build - Install the library
pip install --user dist/remote_target*.whl
usage: remote_target [-h] {info,init,push} ...
A tool for automating software deployments and directory replication over sftp
optional arguments:
-h, --help show this help message and exit
subcommands:
{info,init,push}
info Displays information about the current remote_target configuration
init Initializes a .remote_target file in the current working directory
push Pushes the local files to the remote target
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENCE.txt for more information.
