How do I upload a web application (html and css) to a local server?

Asked

Viewed 107 times

0

In order to use Livestyle (a tool that updates real-time css in the browser), I need to upload my web application (html + css) to a local server, but how can I do this?

I’ve always used Tomcat for my PHP and JAVA applications, but never for pure html.

Thank you!

  • Use the built-in php server inside the project folder. https://www.php.net/manual/en/features.commandline.webserver.php

1 answer

-1


the HTML, CSS and even JAVASCRIPT (used in front-end) are compiled by your browser (e.g.: Chrome, Firefox, Edge...); so you can simply drag your HTML file to the browser it will open and the respective paths will be respected.

By dragging you will see the physical path of your machine in the URL.

If you need to have the 127.0.0.1 path, you can use several solutions, such as Wamp: https://sourceforge.net/projects/wampserver/ (Suppose you use Linux)

  • I understand, but for me to see the change in css I need to update the page, and with Livestyle this change happens as soon as I modify the css, but only if I am on a local server (127.0.0.1 for example)

  • I get it, I use Wamp, I put the link in the answer, it works pretty cool

Browser other questions tagged

You are not signed in. Login or sign up in order to post.