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
- run: | |
name: Disable xdebug | |
command: | | |
sudo sed -i 's/^zend_extension/;zend_extension/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini |
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
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class ConvertCustomerIdToUserIdOnSubscriptionsTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
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
export SENTRY_BEARER_TOKEN="MyBearerToken" | |
export SENTRY_PROJECT="my-sentry-project-name" | |
export ENVIRONMENT="develop" | |
export PREVIOUS_SHA=`tail {{release}}/.commit_hash_previous` | |
cd {{ release }} | |
curl https://sentry.io/api/0/organizations/zaengle/releases/ \ | |
-H "Authorization: Bearer ${SENTRY_BEARER_TOKEN}" \ | |
-X POST \ | |
-H "Content-Type:application/json" \ |
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
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Process\Process; | |
class MQTT extends Command | |
{ | |
protected $signature = 'mqtt:kill-process'; |
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
cd /home/forge/your-site.com | |
git pull origin master | |
composer install --no-interaction --prefer-dist --optimize-autoloader | |
echo "" | sudo -S service php7.3-fpm reload | |
yarn install | |
yarn production | |
# This value is set at the top of the subscriber.js |
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
process.title = 'mqtt-demo-process-node' | |
const mqtt = require('mqtt') | |
const axios = require('axios') | |
const debug = process.env.NODE_ENV !== 'production' | |
let endpoint = 'https://####.test/messages' | |
if(process.env.NODE_ENV === 'production') { | |
endpoint = 'https://####.com/messages' |
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
date('Y-m-d'); | |
Carbon::now()->format('Y-m-d'); |
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
date('n/j/y - h:i:s a'); | |
Carbon::now()->format('n/j/y - h:i:s a'); |
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
date('h:i:s A'); | |
Carbon::now()->format('h:i:s A'); |
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
date('h:i a'); | |
Carbon::now()->format('h:i a'); |
NewerOlder