Jump to content
franciccio-ITALIANO

Building a site on local pc...

Recommended Posts


Hi, I'm building a static site locally. Now I transferred it online, to do some testing, but I saw that to make it work with processwire, I have to change some parts of the hmtl paths and all the images.
In the future I'll still change a lot of things locally, and the idea of making transformations on each page every time to make it work with processwire makes me shudder.
You program used to create local sites, modify them, and transfer the changes instantly to the online website, without rewriting the code parts?
I hope my question is clear.
Is it clear?

Share this post


Link to post
Share on other sites
On 10/12/2019 at 9:49 PM, franciccio-ITALIANO said:

I hope my question is clear.

For me: Unfortunately no 🙂 

Share this post


Link to post
Share on other sites
22 hours ago, Mustafa-Online said:

@franciccio-ITALIANO How do you link assets (images, css ..etc)?? - share some code so we can help

for example: in online processwire site:


<!-- FONTAWESOME STYLE CSS -->



<link href="/site/templates/styles/assets/css/font-awesome.min.css" rel="stylesheet" />

<link href="/site/templates/styles/assets/css/font-awesome.css" rel="stylesheet" />

<link href="/site/templates/styles/assets/css/animate2014.css" rel="stylesheet" />

<link href="/site/templates/styles/assets/css/font-awesome-animation.css" rel="stylesheet" />

<link href="/site/templates/styles/assets/css/text-changing.css" rel="stylesheet" />


In local pc:

 

 

    <!-- FONTAWESOME STYLE CSS -->
    <link href="assets/css/font-awesome.min.css" rel="stylesheet" />
	<link href="assets/css/font-awesome.css" rel="stylesheet" />
    <link href="assets/css/animate2014.css" rel="stylesheet" />	
    <link href="assets/css/font-awesome-animation.css" rel="stylesheet" />

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

I must change every code manually for template file, by ftp-cpanel
I develop html file in local-pc, and for online I must rewrite all
Then... there is also the api processwire!

Share this post


Link to post
Share on other sites

Instead use

<link href="<?php echo $config->urls->templates; ?>styles/assets/css/font-awesome.min.css" rel="stylesheet" />

and place them in the same folder on your local PC. Or you modfiy the url path to the templates folder in your site/config.php

Share this post


Link to post
Share on other sites

Ok, but... the file in local pc are .html

The template files on processwire are .php

So, I must change the estensions files manually... every time I change template, for each template.

I would like update all the site witc 1 clic or few clic bye ftp filezilla. It is possible?

Exist a program for develop a site html-css and charge all online instantanelly?  

Share this post


Link to post
Share on other sites

Your development environment should have the same prerequisites as on your server. You should have a local web server like Laragon (on Windows) or Xammp installed, and also mirror/replicate the ProcessWire installation with the database from your live server. 

Then you can make modifications to these local files and upload them to the live server as they are. No conversion needed anymore.

I would recommend you to use a translator like deepl.com if you are not very good with english, so your questions can be understood better.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...