J
J
jussi982019-06-27 18:06:16
JavaScript
jussi98, 2019-06-27 18:06:16

Synchronizing browser-sync and hosting?

I'm building a website. For building, I use Gulp with the browser-sync plugin to follow development from a computer, phone, and other devices. But this is a local network, I connect to Wi-Fi and watch. How to make it so that the processed files are saved not only in the dist (build) folder, but also automatically on the hosting? Is there any way to do this using FTP? Or are there any plug-ins, ready-made solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2019-06-27
@just_konstantin

In theory, this can be implemented. First you need to find a package that allows you to send files via ftp. Well, it shouldn't be too hard after that. Create an ftp connection and send the files that you send to the dist folder to the server in the same way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question