If .DS_Store was never added to your git repository, simply add it to your .gitignore file.
.gitignore
In your the root directory of your app and simply write
| # Change to the project directory | |
| cd $FORGE_SITE_PATH | |
| # Turn on maintenance mode | |
| php artisan down || true | |
| # Pull the latest changes from the git repository | |
| # git reset --hard | |
| # git clean -df | |
| git pull origin $FORGE_SITE_BRANCH |
We have been moved for better. Look Here for an Updated Version. People are also contributing there for making it more beautiful. See you there!!!
| #!/usr/bin/env php | |
| <?php | |
| echo "Running tests.. "; | |
| exec('vendor/bin/phpunit', $output, $returnCode); | |
| if ($returnCode !== 0) { | |
| // Show full output | |
| echo PHP_EOL . implode($output, PHP_EOL) . PHP_EOL; | |
| echo "Aborting commit.." . PHP_EOL; |
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
| <?php namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| /** | |
| * If the incoming request is an OPTIONS request | |
| * we will register a handler for the requested route | |
| */ | |
| class CatchAllOptionsRequestsProvider extends ServiceProvider { |