プラグイン「remote-ftp」のconfig.fileの設定
■Atomエディタでと保存したファイルをリモートサーバーに転送する為のプラグイン、「remote-ftp」の設定方法を解説する
①Atomエディタを起動し、「file」→「settings」を選択する
②「+Install」を選択し、「remote-ftp」をインストール
③「Packages」→「Remote FTP」→「Create SFTP config file」を選択し、.ftpconfigファイルを作成する
④下記を変更する
・host
・port
・user
・pass
・remote
{
"protocol": "sftp",
"host": "127.0.0.1",
"port": 2222,
"user": "vagrant",
"pass": "〇〇〇〇",
"promptForPass": false,
"remote": "〇〇〇〇〇〇",
"local": "",
"agent": "",
"privatekey": "",
"passphrase": "",
"hosthash": "",
"ignorehost": true,
"connTimeout": 10000,
"keepalive": 10000,
"keyboardInteractive": false,
"keyboardInteractiveForPass": false,
"remoteCommand": "",
"remoteShell": "",
"watch": [],
"watchTimeout": 500
}
remoteの例)”remote”: “/var/www/html/wp-content/themes/hogehoge/”
のようにURLを記述する
■コネクトしている時のみSFTPに転送する場合は追加で下記設定を行う
①「file」→「settings」を選択する
②「Packages」を選択後、Installed Packagesに「remote-ftp」と入力し、「settings」を押下
③「only when connected」を選択