1#!/bin/sh
2
3set -u
4set -e
5
6outdir="/deploy/osu-web-$(date "+%Y%m%dT%H%M%S")"
7
8mkdir -p "$outdir"
9cp -pr ./ "$outdir"
10
11ln -snf "$outdir" "/deploy/current"
12
13cd "$outdir"
14
15# if debug is enabled
16if [ ! "${APP_DEBUG:-false}" = "true" ]
17then
18 php artisan config:cache
19 php artisan route:cache
20fi