diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 00000000..0de6429e --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "public/bower_components" +} diff --git a/.gitignore b/.gitignore index 63717e04..f73a575d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -/bower_components +/public/bower_components /vendor /.release diff --git a/README.md b/README.md index d35cd315..8ac67322 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ For now my main focus is on stock management, ERP your fridge! Public demo of the latest version → [https://demo.grocy.info](https://demo.grocy.info) ## How to install -Just unpack the [latest release](https://github.com/berrnd/grocy/releases/latest) on your PHP (7.0 or later required) enabled webserver, copy `config-dist.php` to `data/config.php`, edit it to your needs, ensure that the `data` directory is writable and you're ready to go. Alternatively clone this repository and install Composer and Bower dependencies manually. +Just unpack the [latest release](https://github.com/berrnd/grocy/releases/latest) on your PHP (7.0 or later required) enabled webserver (root is the `/public` directory), copy `config-dist.php` to `data/config.php`, edit it to your needs, ensure that the `data` directory is writable and you're ready to go. Alternatively clone this repository and install Composer and Bower dependencies manually. If you use nginx as your webserver, please include `try_files $uri /index.php;` in your location block. diff --git a/index.php b/bootstrap.php similarity index 100% rename from index.php rename to bootstrap.php diff --git a/build.bat b/build.bat index 09b38c85..61463931 100644 --- a/build.bat +++ b/build.bat @@ -9,4 +9,4 @@ for /f "tokens=*" %%a in ('type version.txt') do set version=%%a del "%releasePath%\grocy_%version%.zip" "build_tools\7za.exe" a -r "%releasePath%\grocy_%version%.zip" "%projectPath%\*" -xr!.* -xr!build_tools -xr!build.bat -xr!composer.json -xr!composer.lock -xr!bower.json -xr!publication_assets "build_tools\7za.exe" a -r "%releasePath%\grocy_%version%.zip" "%projectPath%\.htaccess" -"build_tools\7za.exe" d "%releasePath%\grocy_%version%.zip" data\*.* data\sessions +"build_tools\7za.exe" d "%releasePath%\grocy_%version%.zip" data\*.* data\sessions data\viewcache\* diff --git a/views/css/grocy.css b/public/css/grocy.css similarity index 100% rename from views/css/grocy.css rename to public/css/grocy.css diff --git a/views/img/grocy.png b/public/img/grocy.png similarity index 100% rename from views/img/grocy.png rename to public/img/grocy.png diff --git a/public/index.php b/public/index.php new file mode 100644 index 00000000..bf457d54 --- /dev/null +++ b/public/index.php @@ -0,0 +1,3 @@ + - + <?php echo $title; ?> | grocy @@ -30,10 +30,10 @@ $applicationService = new ApplicationService(); - + - + @@ -234,8 +234,8 @@ $applicationService = new ApplicationService(); - - + +