See ReactComponentView
and BackboneModelWatchMixin
, below.
The BackboneModelWatchView
could use some additional methods to allow adding/removing watched models after the component is created.
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); | |
}; |
App = new Marionette.Application(); | |
App.addRegions { | |
"headerRegion": "#header" | |
"topMenuRegion": "#top-menu" | |
"mainRegion" : "#main" | |
} | |
App.on 'initialize:after', -> | |
Backbone.history.start() |
#!/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" |
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 |
#!/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" |
.env.dusk.local
set APP_URL=http://nginx
to point to the docker nginx imagetests\DuskTestCase.php
replace the line 'http://localhost:9515', DesiredCapabilities::chrome()
with 'http://selenium:4444/wd/hub', DesiredCapabilities::chrome()
php artisan dusk
# 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 \ |