Jump to content

for a local site on local pc...


franciccio-ITALIANO
 Share

Recommended Posts

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?

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

  • Like 3
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...