getherbie / start-website
The website starter
Installs: 687
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 1
Open Issues: 1
Language:HTML
Type:project
Requires
- getherbie/composer: ^1.0.0
- getherbie/herbie: ^1.0.0
- getherbie/plugin-simplecontact: ^1.0.0
- getherbie/plugin-simplesearch: ^1.0.0
This package is auto-updated.
Last update: 2020-12-30 02:25:36 UTC
README
Website Kickstarter
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!