My personal website
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
routes
storage
tests
.env.example
.gitattributes
.gitignore
.styleci.yml
CONTRIBUTING.md
LICENSE
README.md
artisan
composer.json
composer.lock
package-lock.json
package.json
phpunit.xml
server.php
webpack.mix.js

README.md

peterchrjoergensen.dk

StyleCI Website Release

This is the repository for my personal website.

Demo

https://peterchrjoergensen.dk

Installation

Build

Install the dependencies.

npm install

Process and build assets.

npm run prod

Develop in a local environment.

npm run watch

Deployment

Deploy Script for Laravel Forge

cd /home/forge/peterchrjoergensen.dk

if [ -f artisan ]
then
    php artisan down
fi

git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader

if [ -f artisan ]
then
    php artisan migrate --force

    php artisan cache:clear
    php artisan view:clear

    php artisan config:cache
    php artisan route:cache

    php artisan queue:restart
fi

echo "" | sudo -S service php7.1-fpm reload

if [ -f artisan ]
then
    php artisan up
fi

Environment

.env.example represents the environment variables for production. Sensitive information has been redacted, and must be replaced with their correct values.

Nginx

Configuration for Nginx to cache CSS, JavaScript and various media files.

    # Cache Media: images, icons, video, audio, HTC
    location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
      expires 1M;
      access_log off;
      add_header Cache-Control "public";
    }

    # Cache CSS and JavaScript
    location ~* \.(?:css|js)$ {
      expires 1y;
      access_log off;
      add_header Cache-Control "public";
    }

About

The website is developed using Laravel PHP framework, Composer PHP dependency manager, JQuery JavaScript library, Bootstrap front-end component library and SASS CSS extension language.

For more information on how I developed the website, please visit my blog.

If you would like to contribute by filing an issue or sending a pull request, please feel free to do so.

I would be happy to answer any questions, that you might have regarding the website, via Twitter @tehwave.

Credit

License

© Peter Christian Jørgensen. All Rights Reserved.