This file contains hidden or 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
| ## Pull container and run server | |
| ```shell | |
| docker pull sonarqube | |
| docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube | |
| # open http://localhost:9000 (login with admin/admin) | |
| Create project and scan via IntelliJ | |
| ``` |
This file contains hidden or 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
| ``` | |
| git clone | |
| sudo chgrp -R www-data storage bootstrap/cache | |
| sudo chmod -R ug+rwx storage bootstrap/cache | |
| touch .env | |
| nano .env // edit environment file | |
| php artisan migrate // or | |
| php artisan migrate:refresh --seed | |
| ``` |
This file contains hidden or 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
| brew install php56 --with-imap --with-mcrypt |
This file contains hidden or 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
| // First we need to load the Dotenv, you could also do this via bootstrap/app.php | |
| \Dotenv::load(__DIR__.'/../../'); | |
| // call <url>/k | |
| $app->get('/k', function() use ($app) { | |
| $path = base_path('.env'); | |
| if (file_exists($path)) | |
| { | |
| file_put_contents($path, str_replace( |
This file contains hidden or 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
| # Convert all images to a new type. Sample: from *.png to *.jpeg | |
| sips -s format jpeg ./*.png --out . |