getherbie/start-website

The website starter

Installs: 629

Dependents: 0

Suggesters: 0

Stars: 3

Watchers: 0

Forks: 1

Open Issues: 1

Language:HTML

Type:project

v1.0.2 2018-12-15 12:48 UTC

README

Using Composer

You can start your new Herbie website by using Composer.

# for the stable version 1
$ composer create-project getherbie/start-website myproject

# for the dev-master version
$ composer create-project getherbie/start-website:dev-master myproject

Composer installs a simple demo website including the needed dependencies into the myproject folder.

Alternatively, you can run the above commands step-by-step:

$ git clone https://github.com/getherbie/start-website.git myproject
$ cd myproject
$ composer update

In your terminal go to the web directory and start the internal PHP webserver.

$ cd myproject/web
$ php -S localhost:8888 index.php

Now, open the URL http://localhost:8888 in your browser. Finished!

Using Docker

You can find the Docker configuration files here:

docker-compose.yml
docker
    - nginx
        - app.conf
docker
    - php
        - Dockerfile
        - php.ini

First, you should update the server name in the config file docker/nginx/app.conf (server_name your-domain.tld; -> for example server_name mydomain.org).

Then start the Docker container by using docker-compose up -d in the root dir of the website.

Now, open the URL http://0.0.0.0 or http://mydomain.org in your browser. Finished!