Skip to content

Commit

Permalink
Init next
Browse files Browse the repository at this point in the history
  • Loading branch information
citronbleuv committed Aug 12, 2017
1 parent 7e9da52 commit 9ad621f
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# App
files
/files
/docker-compose-dev.yml
/docker-compose.yml

# ViM
*.swp
Expand Down
5 changes: 4 additions & 1 deletion app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
}
],
"minimum-stability": "dev",
"repositories": [
{ "type": "git", "url": "https://github.com/citronbleuv/sabre-dav" }
],
"require": {
"php": ">=5.5.0",
"nortic/brute-force-protection": "~v1.0.0",
"sabre/dav": "~3.2.2"
"sabre/dav": "dev-patch-1"
}
}
2 changes: 1 addition & 1 deletion app/web/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
// Keeweb
$server->on('method:GET', function(RequestInterface $request, ResponseInterface $response) use ($rootPath) {

if ( ! $request->getPath()) {
if ( ! $request->getPath() && ! $request->getRawServerValue('QUERY_STRING')) {
include $rootPath .'/keeweb.html';
exit;
}
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion docker/prod/prepare/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ chown -R www-data:www-data /var/www
echo "- Install vendors"

if [[ $DEV_COMPOSER ]]; then
echo "fwef";
gosu www-data composer update --prefer-source
else
gosu www-data composer update
Expand Down
Binary file removed files/general.kdbx
Binary file not shown.
27 changes: 24 additions & 3 deletions install
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
#!/bin/bash
docker-compose stop
docker-compose rm
docker-compose --file=docker-compose.dev.yml up -d --build

if [ ! -z "$1" ] && [ $1 == 'dev' ]; then

if [ ! -f docker-compose-dev.yml ]; then
echo 'You must copy and configure the file docker-compose-dev.yml.dist to docker-compose-dev.yml'
exit 1
fi

docker-compose --file=docker-compose-dev.yml stop
docker-compose --file=docker-compose-dev.yml rm
docker-compose --file=docker-compose-dev.yml up -d --build

else

if [ ! -f docker-compose.yml ]; then
echo 'You must copy and configure the file docker-compose.yml.dist to docker-compose.yml'
exit 1
fi

docker-compose stop
docker-compose rm
docker-compose up -d --build
fi

0 comments on commit 9ad621f

Please sign in to comment.