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
'use strict'; | |
/*jshint esversion: 6 */ | |
const DEFAULT_LIMIT = 10; | |
const DEFAULT_OFFSET = 0; | |
const DEFAULT_PAGE = 1; | |
/** | |
* Exports a plugin to pass into the bookshelf instance, i.e.: |
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
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Remove Local Repositories | |
|-------------------------------------------------------------------------- | |
| | |
| This script will remove local repositories from the composer.json and | |
| replace them with the github version. | |
| |
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
dockerandtest: | |
script: | |
- pwd | |
- git describe --tags > version.txt | |
- docker-pull lucacri/laravelcaddy | |
- docker-compose kill || true | |
- docker-compose rm -f || true | |
- docker-compose -f docker-compose-gitlab.yml kill || true | |
- docker-compose -f docker-compose-gitlab.yml rm -f || true | |
- docker-compose -f docker-compose-gitlab.yml pull |
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
web: | |
scale: 4 | |
upgrade_strategy: | |
start_first: true | |
health_check: | |
port: 80 | |
interval: 30000 | |
unhealthy_threshold: 4 | |
response_timeout: 20000 | |
request_line: GET / HTTP/1.0 |
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
postgres: | |
image: 'postgres:latest' | |
environment: | |
- POSTGRES_USER=blog | |
- POSTGRES_PASSWORD=blog123 | |
redis: | |
restart: always | |
labels: | |
io.rancher.scheduler.affinity:host_label: rediscluster=true |
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
postgres: | |
image: 'postgres:latest' | |
environment: | |
- POSTGRES_USER=blog | |
- POSTGRES_PASSWORD=blog123 | |
redis: | |
restart: always | |
labels: | |
io.rancher.scheduler.affinity:host_label: rediscluster=true |
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
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y php | |
RUN mkdir -p /var/www | |
EXPOSE 8999 | |
ENTRYPOINT php -S 0.0.0.0:8999 -t /var/www |
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
<div class="form-input"> | |
<label> | |
<input required> | |
<span class="placeholder">Text Input</span> | |
</label> | |
</div> | |
<div class="form-input"> | |
<label> | |
<textarea rows="10" required></textarea> |
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
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class AlterUsersTableAddMultipleIndex extends Migration | |
{ | |
/** | |
* Run the migrations. |
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
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class AlterUsersTableAddUsernameIndex extends Migration | |
{ | |
/** | |
* Run the migrations. |
NewerOlder