Как atom подключить к ftp

Обновлено: 19.05.2024

Use SFTP and FTP features inside Atom, having the ability to upload and download files directly from inside Atom.

Contributors

:1st_place_medal: @mgrenier (Original owner)
:2nd_place_medal: @jpxd
:3rd_place_medal: @jimmaaay

Extras

  • Toggle for uploading changes automatically when you save a file
  • Define files to be monitored to be automatically monitoring
  • Set difftoolCommand in AtomSettingView of remote-sync -- The path to your diff tool executable
  • Toggle the logs for extra information
  • Toggle the hiding and showing of the log panel
  • Set custom config name

Remote FTP

Screenshot

We all know that some handy commands can make our daily task easier, this are meant to do that, be aware that the action of any of them could overwrite or be over written by any other plugin.

Windows Mac
Toggle Ctrl + Alt + o Ctrl + Alt + o
Connect Ctrl + Alt + c Ctrl + Alt + c
Disconnect Ctrl + Alt + d Ctrl + Alt + d
Upload Ctrl + Shift + u Cmd + Shift + u

Ftp-Remote-Edit

Editing files on your server without the need for creating a local project. It is not necassary to download all files of your project. Simply connect and edit your remote files. The files will be automatically updated to the server on saving.

A screenshot of your package

Нужные пакеты

Установка пакета. Находим нужный пакет (Atom » Preferences » Install)

Настройка пакета remote-ftp

Добавляем проект (Файл » Добавить папку с проектом). В файл .ftpconfig вставляем код

"host": " ", //имя хоста или IP-адрес сервера. По умолчанию: localhost
"user": " ", //имя пользователя для аутентификации.
"pass": " ", //пароль для аутентификации
"remote": "/home/web/", //попробуйте использовать абсолютные пути

Подключение Atom FTP FTPS SFTP

Работа с программой Atom и как подключиться к удаленному сайту через FTP / FTPS / SFTP.

Подключение к серверу через FTP / FTPS / SFTP

Расширения » Remote FTP » Toggle » Connect

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

Поиск кода в файлах сайта в Atom

Ctrl + Shift + F (поиск кода в файлах сайта)

поиск кода в файлах сайта

Прежде чем искать часть кода в файлах сайта, скачайте файлы в папку проекта.
Для этого достаточно встать на папку и нажать скачать.

Keybindings

  • Toggle the view with ctrl-space
  • Toggle the focus with ctrl-alt-space
  • Toggle the fuzzy finder with ctrl-alt-p (item must be selected in the tree view)

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

Редактор Atom. Удобная работа с FTP, пакет remote-sync

В материале я расскажу о пакете для редактора Atom remote-sync, который позволяет удобно загружать и выгружать редактируемые файлы на сервер по FTP или SFTP.

Работать, используя этот пакет (или аналогичные) значительно удобнее, чем сохранять код, а затем заливать с помощью сторонних файловых клиентов.


После настройки пакета у вас появиться возможность выгружать и загружать файлы прямо из строки команд редактора, как показано на скриншоте.

Configuration in project's .ftpconfig file

SFTP Configuration Options

FTP & FTPS Configuration Options

Package preferences

There are some settings hidden in the package preferences!

Screenshot of Settings

I'd like to support this project

Help us bring this project to the moon! Atom's rocket needs to get somewhere, right?

Contribute! I'll be happy to accept pull requests!

Bug hunting! Report them!

Feature request? Please let me know by filling an issue!

Share the love!

  • Star this project on Atom, Github
  • Speak out on the forum

How use multiproject mode?

It is a very alpha / beta version. For the time being, only 1 project is supported at one time.

Установка и настройка

  • Устанавливаем пакет remote-sync (Atom->Preferences->Install).
  • Заходим в папку проекта и создаем там файл .remote-sync.json (все точки и имя важны).
  • Добавляем в файл параметры работы пакета и данные о доступе к серверу.

Package preferences

  • Tree View - Open On Startup - Open the view automatically when atom starts.
  • Tree View - Restore State - Restoring the previous state after closing and reopening atom. (Beta)
  • Tree View - Allow Pending Pane Items - Allow items to be previewed without adding them to a pane permanently.
  • Tree View - Hide Ignored Files - Don't show items matched by the Ignored Names core config setting.
  • Tree View - Sort Folders Before Files - When listing directory items, list subdirectories before listing files.
  • Tree View - Sort Servers By Name - When listing servers items, list servers by name rather than by host.
  • Tree View - Auto Reveal Active File - Auto reveal the current active file on the tree view.
  • Tree View - Drag & Drop Confirmation - Show dialog to confirm drag & drop action.
  • File Transfer - Default Download Path - Default download path for folders and files.
  • File Transfer - Default Upload Path - "Default upload path for folders and files.
  • Tree View Finder - Key For Search - Specifies the key at which the search is to be used.
  • Tree View Finder - Ignored Names - Files and directories matching these patterns and the Ignored Names core config setting will be ignored during indexing.
  • Notification - Successful Upload - Show notification on successful upload
  • Notification - Failed Upload - Open protocol view in case of failed upload.
  • Development - Debug Mode - Output debug messages to the console.
  • Development - Disable Lazy Loading - Disable lazy loading of this package.

Значение параметров

  • transport — тип протокола.
  • uploadOnSave — загружать файл, каждый раз при сохранении. Рекомендую выключить.
  • deleteLocal — удалять локальную копию файла и паки, если они были удалены на сервере. Рекомендую выключить.
  • hostname — адрес сервера.
  • port — порт сервера, по умолчанию для FTP 21, для SCP 22.
  • target — путь до файлов проекта на сервера.
  • ignore — список этих файлов не будет отслеживаться и загружаться на сервер. Я всегда вписываю сюда сам файл настройки, чтобы он не попал на сервер.
  • username, password — логин и пароль от сервера.

Installation

You can install this like any other Atom package, with one of these methods:

I'd like to support this project

Help us bring this project to the moon! Atom's rocket needs to get somewhere, right?

  • Contribute! I'll be happy to accept pull requests!
  • Bug hunting!Report them!
  • Feature request?Please let me know by filling an issue!
  • Star this project on Atom, Github
  • Donate for this project -

Features

  • Uploading/downloading files to/from the server
  • Displaying diffs between the local and remote files with your favourite diff tool
  • Monitoring files for external changes and automatically uploading - useful for scss/less compiling
  • Support for both SCP/SFTP and FTP

Getting started

  • Toggle the view with "ftp-remote-edit:toggle" or use keybinding ctrl-space
  • Enter the master password. If not allready set, enter the firsttime. All information about your server settings will be encrypted with this password.
  • Right click and select "Edit Servers" to open the configuration view. Here you can add, edit and delete your (s)ftp server settings.

Как использовать

  • Во время работы над файлом, сохраните его и войдите в строку команд (⌘-SHIFT-P на Mac и CTRL-SHIFT-P на Win).
  • Наберите команду upload, выберите Remote Sync: Upload File.
  • Внизу экрана в консоли вы увидите отчет о загрузке (была ли она успешна, а если нет, то почему).

Special Thanks

  • @miles-collierPR-38 Keybinding for toggling
  • @dustinparkerPR-112 Sort servers by name
  • @Me1onRindPR-124 Fuzzy finder for remote files
  • @wacki4PR-169, PR-245, PR-265, PR-266 URI handler, PR-252 Grouping servers, PR-267, PR-268 Allow to upload/download file/directory from context menu, PR-272 Import from FileZilla, Remote-ftp, PHP Storm config file, PR-286, PR-302, PR-320 Allow to select default path for download and upload, PR-321 Extends the logon type of the server configuration with "Prompt for Password", PR-336 Don't allow to create temp duplicates on server list"
  • @FabrizioCaldarelliPR-178, PR-174 Help fix some errors
  • @pfitzsebPR-228, PR-229 Add providers for better Juno integration, PR-241 Add suppport for agent based authentication

URI handler

Add temporary server for ftp/sftp by using uri. It is possible to use it with/without username, password, port and path.

  • atom://ftp-remote-edit/sftp://username:password@host:port/path
  • atom://ftp-remote-edit/ftp://username:password@host:port/path

Helpfull commands

  • Toggle the view with "ftp-remote-edit:toggle"
  • Change master password with "ftp-remote-edit:change-password"
  • Toggle the fuzzy finder with "ftp-remote-edit:finder"
  • Reindex the fuzzy finder cache with "ftp-remote-edit:finder-reindex-cache"

Whats new

  • Enhancement: Improve loading time of package (issue-301)
  • Enhancement: Allows to remember last selected path for download/upload
  • Enhancement: Extends the logon type of the server configuration with "Prompt for Password"
  • Enhancement: Add option to restore previous state after closing and reopening atom (BETA)
  • Enhancement: Allow to reconnect opened server from context menu (issue-290)
  • Enhancement: Don't allow to create temp duplicates on server list (PR-336)
  • Feature request: "Add option to display dialog to confirm drag & drop action" (issue-334)

Остальные настройки и возможности

Если вам понравился или был полезным этот материал, то хотел бы посоветовать мои другие статьи на эту тему —

How to use .ftpignore?

This package use the ignore npm package. Which covers the operation of fully gitignore.

Читайте также: