Question

I'm working on a website and right now I am using FileZilla to make changes to it. Every time I make a change, I have to re-upload the file to the website through FTP and then wait for it to update online. I want to just deploy my project to localhost so I can get instant results and then just upload the whole project when it's finished. How do I do this? All I have is a set of directories with the files in them.

Was it helpful?

Solution

You really need to use a web/application server such as IIS/Apache. For PHP projects go for WampServer/XAMPP.Easy to setup and works very well.

OTHER TIPS

(maybe too obvious) If you are working only static content based on html/css/js you can just edit and view changes directly by opening the local file in your browser and refresh each time. Furthermore for css and html you can edit your code "live", directly into browser and see changes immidiately.

Another option is to edit files with an editor that supports ftp like notepad++, you can connect via ftp, open and edit files directly from server (like php,html,css,js) because once you save the editor will automatically upload your changes. Heres a good explanation about notepad++ and ftp plugin.

Localserver If you work with php (and even only with html/css) the best choise is to run a local server that rappresents a real environment in which your code will run. As said by others XAMPP is a good choise for begginers because of simple installation and management. XAMPP download XAMPP tutorial Once installed put your folder inside C:/xampp/htdocs/yourCodeFolder Run the xampp control panel and start the Apache server. Finally navigate with your browser to: http://localhost/yourCodeFolder/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top