Nothing-is-3D

portfolio de Vincent Lamy

BabylonJS|lang-en

Use a local webserver

Aucun commentaire

( version française disponible)

Who says doing webGL means using web technologies, seems logical.

If you're a dev', you will probably not have a hard time to setup a local production web server. On the other hand when you're an artist, this is not an obivous thing. So here some tips in no particular order, easy to use.

Window

Easyphp

Official website, use DevServer version. This is my favorite tool to create in no time a local web server.

Wamp

Official website, a little less un peu moins flexible than EasyPhp 'cause you have to use symbolic links to work outside the www folder.

Linux (Mint)

It's a bit more difficult to setup a local webserver on Linux, here some tip & tricks I found and test.

node.js

  • tuto, doc
  • sudo apt install nodejs
  • sudo apt install npm
  • sudo npm install http-server -g
  • inside the folder you want as webserver root: http-server -o (-ois here to open localhost [http://127.0.0.1:8080] directly in the browser)

PHP

(thanks to tontof for the tip)

  • sudo apt install php
  • inside the folder you want as webserver root: php -S localhost:8000
  • if you need some php libraries, the simpliest is to use the software manager (example: search for php-xml)

Apache

ServerAdmin webmaster@localhost

# DocumentRoot /var/www/html
DocumentRoot /home/userName/WebDev

<Directory /home/userName/WebDev>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
</Directory>
  • sudo chmod -R 0755 /home/userName/WebDev/to handle user rights
  • sudo service apache2 restart
  • use a soft like FreeFileSync to work on your workspace (repeat chmod thing is needed)

Écrire un commentaire

Quelle est la troisième lettre du mot enjmu ?

Fil RSS des commentaires de cet article