
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ローカルファイルを監視し、自動でファイルをアップします。
mac windows linuxで一応動作します。
windowsはruby 2.0系だと動作しない可能性がありますので気をつけて下さい。
Add this line to your application's Gemfile:
gem 'autosftp'
And then execute:
$ bundle
Or install it yourself as:
$ gem install autosftp
設定ファイルを準備します。プロジェクトの直下で作成したほうが良いです。
yaml形式で.autosftpというファイルが作成されます。
$ autosftp init
設定ファイルに接続先の情報を追加します。[remote name]は自由な名称をつけて下さい。
直接.autosftpファイルを修正しても問題ありません。
$ autosftp set [remote name]
自動監視をスタートします。
$ autosftp start [remote name]
後ろにディレクトリを渡すことで、監視するディレクトリ先を選択することが出来ます。 setしたローカルディレクトリ移行のパスを指定して下さい。
$ autosftp start [remote name] /app/
# いくつでも渡すことが出来ます。
$ autosftp start [remote name] /app/ /vender/
設定したsftpの情報を確認します。
$ autosftp list
設定したsftpを削除します。
$ autosftp delete [remote name]
プロジェクトのディレクトリに移動します。 (プロジェクトが/User/username/projectと仮定する。)
$ cd /User/username/project
autosftpの設定ファイルを作成します。
$ autosftp init
SFTPの設定を行います。 ここで重要なのが、ローカルのパスとリモートのパスを合わせる必要があります。 [remote name]は自由な名称をつけて下さい。
$ autosftp set [remote name]
一度設定ファイル(.autosftp)を確認したほうが良いです。
中身が以下のようになっていたら設定完了です。
remote_path
と local_path
のパスは合わせて下さい。
---
: [remote name]
:user: username
:host: test.com
:port: 22
:password: password
:remote_path: /var/www/html/
:local_path: /User/username/project/
監視をスタートします。
$ autosftp start [remote name]
FAQs
Unknown package
We found that autosftp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.