-
Check your version
brew --version
before proceeding -
Assuming that you have already installed php and apache via Homebrew v1.6+
-
Install xDebug php extension
pecl channel-update pecl.php.net
pecl clear-cache
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
Place the supervisord.conf under .ebextensions/supervisor/
Place the supervisor.config under .ebextensions/
Place the data_import_consumer.conf under .ebextensions/supervisor/
It was not exactly obvious. Here's how to revert a Gist commit!
Checkout the gist like a normal git repo:
# replace the Gist ID with your own
git clone [email protected]:cc13e0fcf2c348cc126f918e4a3917eb.git
Treat it like a normal repo. Edit, force push, etc.
@servers(['remote' => 'ks1.xxxxx.com', 'local' => '127.0.0.1']) | |
@include('vendor/autoload.php') | |
@setup | |
# customize this keys... | |
# USERNAME_HERE, DOMAIN_NAME_HERE, REPO_GROUP, REPO_NAME | |
$dotenv = Dotenv\Dotenv::create(__DIR__, '.env'); | |
$dotenv->load(); |
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |
Here's how to overcome this common gotcha: The default password reset system not working out of the box with Laravel 5.x (as you're not sent the user's password), without having to alter altering vendor/core. Here's how to make it work as you'd expect it to without changing any vendor files.
Firstly create a new notification for your app:
php artisan make:notification ResetPassword
Then open the newly created file: app\Notifications\ResetPassword.php
and make the following changes:
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
Create the following folder structure in your root project directory: .ebextensions/supervisor
Place the supervisor.config under .ebextensions/
Place the setup.sh under .ebextensions/supervisor/
Run "chmod +x .ebextensions/supervisor/setup.sh"
Place the supervisord.conf under .ebextensions/supervisor/