-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
664 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
upstream dash-handler { | ||
server 127.0.0.1:9002; | ||
} | ||
|
||
server { | ||
listen 80; | ||
server_name dash.example.com; | ||
root /var/www/public; | ||
|
||
# Point index to the Laravel front controller. | ||
index index.php; | ||
|
||
location / { | ||
# URLs to attempt, including pretty ones. | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
|
||
location ~ \.php(?:$|/) { | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
fastcgi_pass dash-handler; | ||
} | ||
|
||
# Remove trailing slash to please routing system. | ||
if (!-d $request_filename) { | ||
rewrite ^/(.+)/$ /$1 permanent; | ||
} | ||
|
||
# We don't need .ht files with nginx. | ||
location ~ /\.ht { | ||
deny all; | ||
} | ||
|
||
# Set header expirations on per-project basis | ||
location ~* \.(?:ico|css|js|jpe?g|JPG|png|svg|woff)$ { | ||
expires 365d; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
|
||
cat > .env <<-EOF | ||
APP_KEY=${APP_KEY:-SomeRandomKey!} | ||
APP_ENV=${APP_ENV:-local} | ||
APP_DEBUG=${APP_ENV:-true} | ||
APP_LOCALE=${APP_LOCALE:-en} | ||
APP_FALLBACK_LOCALE=${APP_FALLBACK_LOCALE:-en} | ||
DB_CONNECTION=${DB_CONNECTION:-mysql} | ||
DB_HOST=${DB_PORT_3306_TCP_ADDR:-localhost} | ||
DB_DATABASE=${DB_DATABASE:-annotations} | ||
DB_USERNAME=${DB_USER:-mysql_username} | ||
DB_PASSWORD=${DB_PASSWORD:-mysql_password} | ||
CACHE_DRIVER=${CACHE_DRIVER:-file} | ||
SESSION_DRIVER=${SESSION_DRIVER:-file} | ||
QUEUE_DRIVER=${QUEUE_DRIVER:-sync} | ||
EOF | ||
composer config -g github-oauth.github.com ${TOKEN:-} | ||
composer install | ||
php artisan cache:clear | ||
chmod -R 777 public | ||
chmod -R 777 storage | ||
php artisan migrate --force | ||
exec php-fpm |
Oops, something went wrong.