Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically FTP files that I am editing

I'm trying to figure out how to autoftp with Filezilla. Are there any other programs that do this right off the bat?

like image 660
user1549397 Avatar asked Aug 03 '12 21:08

user1549397


People also ask

How do I automate an FTP file transfer?

Generating script Select the files you want to transfer. Use one of the file transfer commands: Upload, Download, Upload and Delete, Download and Delete. On the transfer confirmation dialog, setup transfer options (if you need any non default settings). Use the Transfer Settings > Generate Code command.

Can I edit files in FileZilla?

FileZilla is typically used for uploading / downloading files between the server and your local computer, but can also be used for editing files.


1 Answers

I use WinSCP for some of its amazing benefits. I connect to my FTP server with WinSCP and let it monitor my local folder /website/public_html.

Any changes I make in my local folder automatically get uploaded to my FTP server by WinSCP. The feature is called Keep remote directory up to date:
http://winscp.net/eng/docs/task_keep_up_to_date

As for SCSS, I also use it:
I have a script that opens a console window to watch my /website/scss files and compiles them to /website/public_html/styles/. WinSCP sees the CSS file has changed (or is new) and automatically uploads it.

Notice: The only downside is you cannot reach your error_log as that is automatically generated on the server by PHP. To do this you can easily instantiate another WinSCP to connect to your website. Now you have 1 WinSCP monitoring your local folder and 1 WinSCP where you can access your site map.

like image 148
Pwnball Avatar answered Sep 29 '22 20:09

Pwnball