franciccio-ITALIANO Posted June 14, 2019 Posted June 14, 2019 Hi, I normally develope html-css of my site on my local pc in any folders, then I move all online by ftp. But by this method I must change all img-css-js addresses of all html file every time! It's is annoying. Is there a way to do it automatically? Exist a program for to develope html-css of the site in local, and moved all online by ftp WITHOUT MAKING CHANGES? I would like to have a perfect copy of site in local, immediately transferable online by ftp.... It's possibile? How?
Jonathan Lahijani Posted June 14, 2019 Posted June 14, 2019 If I understand your question correctly, as long as you use relative URLs instead of hardcoded absolute URLs, this shouldn't be a problem. 2
franciccio-ITALIANO Posted June 14, 2019 Author Posted June 14, 2019 Ok thanks I didn't know this difference between absolute url and relative url. Now I think I have solved it. Later I see if it works on the online server. But is there a program that allows you to create and publish online with a click via ftp, the site built on the PC?
flydev Posted June 14, 2019 Posted June 14, 2019 23 minutes ago, franciccio-ITALIANO said: But is there a program that allows you to create and publish online with a click via ftp, the site built on the PC? You can give a try to Duplicator (do not forget to use the "dev" branch). 1
louisstephens Posted June 14, 2019 Posted June 14, 2019 I would agree with Jonathan about relative urls. Also, I found if I have an existing live site that needs new updates, using github server hooks is a great thing. I simply push to github and I have a hook in github that will push it live to the server.
wbmnfktr Posted June 14, 2019 Posted June 14, 2019 55 minutes ago, louisstephens said: I simply push to github and I have a hook in github that will push it live to the server. You have my attention... please tell more. ?
Jonathan Lahijani Posted June 14, 2019 Posted June 14, 2019 11 hours ago, franciccio-ITALIANO said: Ok thanks I didn't know this difference between absolute url and relative url. Now I think I have solved it. Later I see if it works on the online server. But is there a program that allows you to create and publish online with a click via ftp, the site built on the PC? This article goes through many different techniques:https://css-tricks.com/deployment/ My approach is using rsync inside a bash script:https://css-tricks.com/deployment/#article-header-id-9 @wbmnfktr This is for you: https://css-tricks.com/deployment/#article-header-id-5 3
wbmnfktr Posted June 14, 2019 Posted June 14, 2019 Thank you @Jonathan Lahijani... my reading list for the weekend just became way more interesting with this.
Recommended Posts