jonnybarnes.uk/readme.md

45 lines
1.2 KiB
Markdown
Raw Normal View History

2016-05-19 16:42:29 +01:00
# jonnybarnes.uk
2016-05-19 15:01:28 +01:00
2016-05-19 16:42:29 +01:00
This is the code that runs my website, [jonnybarnes.uk](https://jonnybarnes.uk).
2016-05-19 15:01:28 +01:00
2023-04-08 16:18:02 +01:00
In theory this is usable by others now 🚀
2016-12-08 21:13:26 +00:00
2023-04-08 16:18:02 +01:00
Set up the database, this software needs [PostgreSQL](https://wwwpostgresql.org), after installing:
2016-12-08 21:13:26 +00:00
2016-12-09 20:56:41 +00:00
```shell
$ createdb -E utf8 db_name
```
2016-12-08 21:13:26 +00:00
First get the code, and make sure youre on the `master` branch. This branch will
only have tagged releases:
```shell
$ git clone https://github.com/jonnybarnes/jonnybarnes.uk mysite.com
$ cd mysite.com
$ git checkout master
```
Then we need to set up the environment variables that the app will use.
```shell
$ cp .env.example .env
$ vim .env
```
Fill in the various variables. Then we can set up the app:
```shell
$ composer install
$ php artisan key:generate
$ php artisan migrate
```
2023-04-08 16:18:02 +01:00
Now we need to edit some config values. In `config/app.php` edit `name`.
2016-12-08 21:13:26 +00:00
Some other things that should be changed. Go to `resources/views/master.blade.php`,
you may not want to link to a projects page. Also in the `<head>` the two last links
are to my profile pic and pgp key, ammend/remove as desired.
2023-04-08 16:18:02 +01:00
Now point your server to `public/index.php` et viola. Essentially this is a
2016-12-08 21:13:26 +00:00
Laravel app so debugging things shouldnt be too hard.