- spin up the selenium image (selenium/standalone-chrome) as included with laradock
- in
.env.dusk.localsetAPP_URL=http://nginxto point to the docker nginx image - in
tests\DuskTestCase.phpreplace the line'http://localhost:9515', DesiredCapabilities::chrome()with'http://selenium:4444/wd/hub', DesiredCapabilities::chrome() - run
php artisan dusk - ...
- PROFIT
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
| # stop both postgres (if you have 15 installed already) | |
| brew services stop postgresql@14 | |
| brew services stop postgresql@15 | |
| brew link postgresql@14 # Important, need to use old links | |
| # You might want to change sub versions mentioned below for 15.* and 14.* | |
| /opt/homebrew/Cellar/postgresql@15/15.4_1/bin/pg_upgrade \ | |
| --old-bindir=/opt/homebrew/Cellar/postgresql@14/14.9_1/bin/\ | |
| --old-datadir /opt/homebrew/var/postgresql@14 \ |
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
| #!/bin/sh | |
| wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.9-osx10.10-x86_64.tar.gz | |
| tar xfvz mysql-5.7* | |
| echo "stopping mamp" | |
| sudo /Applications/MAMP/bin/stop.sh | |
| sudo killall httpd mysqld | |
| echo "creating backup" |
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
| APP_ENV=testing | |
| APP_KEY=SomeRandomString | |
| DB_CONNECTION=testing | |
| DB_TEST_USERNAME=root | |
| DB_TEST_PASSWORD= | |
| CACHE_DRIVER=array | |
| SESSION_DRIVER=array | |
| QUEUE_DRIVER=sync |
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
| #!/bin/sh | |
| wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.24-osx10.9-x86_64.tar.gz | |
| tar xfvz mysql-5.6* | |
| echo "stopping mamp" | |
| sudo /Applications/MAMP/bin/stop.sh | |
| sudo killall httpd mysqld | |
| echo "creating backup" |
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
| App = new Marionette.Application(); | |
| App.addRegions { | |
| "headerRegion": "#header" | |
| "topMenuRegion": "#top-menu" | |
| "mainRegion" : "#main" | |
| } | |
| App.on 'initialize:after', -> | |
| Backbone.history.start() |
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
| var oldSync = Backbone.sync; | |
| Backbone.sync = function(method, model, options){ | |
| options.beforeSend = function(xhr){ | |
| xhr.setRequestHeader('X-CSRFToken', CSRF_TOKEN); | |
| }; | |
| return oldSync(method, model, options); | |
| }; |