Crates.io | resm |
lib.rs | resm |
version | 0.1.2 |
source | src |
created_at | 2023-09-08 00:57:19.697142 |
updated_at | 2023-09-14 08:11:28.074579 |
description | Remote Server Management tools |
homepage | |
repository | https://github.com/ichigo-dev/resm |
max_upload_size | |
id | 966730 |
size | 12,282,740 |
A group of tools for simplifying the work done by connecting to a remote server in the development of web systems.
First, create a configuration file to use this command according to the JSON
format below. (An example configuration file can be found in env
)
Configuration files are automatically and recursively loaded from $HOME/env
,
so they can be managed separately for each project, for example. It is also
possible to change the read path of these configuration files by specifying the
-e
option common to all subcommands.
[
{
"project": "project name",
"environment": "dev",
"remote_path": "path/to/remote/project/root",
"remote_cache_path": "path/to/remote/project/cache",
"git_path": "path/to/git/repo",
"git_src_path": "path/to/git/src",
"backup_path": "path/to/backup",
"db_host": "db host name",
"db_host_reader": "db host name for reader",
"db_port": 3306,
"db_name": "db name",
"db_user": "db user",
"db_password": "db password",
"db_root_user": "db root user",
"db_root_password": "db root password",
"connect_info":
{
"host": "host name",
"port": 22,
"user": "user",
"identity_file": "path/to/key_file"
},
"tunnels":
[
{
"host": "bastion host name",
"port": 22,
"user": "user",
"identity_file": "path/to/key_file"
}
]
}
]
The meaning of each field is as follows. Required fields are marked with an asterisk (*).
Execute the following command to generate the SSH configuration file.
$ resm init
Place the generated config file in $HOME/.ssh/config
or append appropriately.
Lists projects.
Shows the project setting.
Replaces the project directory in the destination server with the local project directory. In short, it is useful when you want to perform a full update of an application.
Uploads only specified files in the local repository to the remote server.
Clears the remote cache directory.
Backs up the remote directory.
Backs up the database.
This tool depends on packages that are only compatible with Unix, so if you are
developing in a Windows environment, install this command on WSL and use the
Windows files in /mnt
as git_path
or git_src_path
. Be sure to specify a
path in your system.