-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add photo directory parameter as env var + Update README
- Loading branch information
Showing
7 changed files
with
59 additions
and
14 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
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
<h3 align="center"><img width="80" src="public/android-chrome-256x256.png"><br>pixapop</h3> | ||
<h1 align="center"><img width="80" src="public/android-chrome-256x256.png" alt="Pixapop"></h1> | ||
|
||
**pixapop** is a free and open-source single page application built with [Symfony](https://symfony.com/) and [VueJS](https://vuejs.org/) to view your photos in the easiest way possible. | ||
# Pixapop | ||
|
||
[![License](https://poser.pugx.org/bierdok/pixapop/license?format=flat-square)](https://opensource.org/licenses/MIT) | ||
[![Latest Stable Version](https://poser.pugx.org/bierdok/pixapop/v/stable.svg?format=flat-square)](https://packagist.org/packages/bierdok/pixapop) | ||
|
||
**pixapop** is an open-source single page application built with [Symfony](https://symfony.com/) and [VueJS](https://vuejs.org/) to view your photos in the easiest way possible. |
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
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 |
---|---|---|
|
@@ -18,4 +18,4 @@ liip_imagine: | |
loaders: | ||
photos: | ||
filesystem: | ||
data_root: "/photos" | ||
data_root: '%env(APP_PHOTO_DIR)%' |
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
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,32 @@ | ||
<?php | ||
|
||
namespace App\Command; | ||
|
||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Filesystem\Filesystem; | ||
|
||
class CreateSymlinkCommand extends Command | ||
{ | ||
protected static $defaultName = 'app:create-symlink'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $projectDir; | ||
|
||
/** | ||
* @param string $projectDir | ||
*/ | ||
public function setProjectDir(string $projectDir): void | ||
{ | ||
$this->projectDir = $projectDir; | ||
} | ||
|
||
protected function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
$fileSystem = new Filesystem(); | ||
$fileSystem->symlink(getenv('APP_PHOTO_DIR'), $this->projectDir . '/public/photos'); | ||
} | ||
} |
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