start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
#set -x | |
COMMAND=$@ | |
osascript -e 'tell application "iTerm2"' \ | |
-e 'create window with default profile command "bash -c \"echo " & "'"${COMMAND}"'" & " && " & "'"${COMMAND}"'" & " && read || read \""' \ | |
-e 'end tell' |
node { | |
// Clean workspace before doing anything | |
deleteDir() | |
def hostStage | |
def deployStatus | |
try { | |
stage ('Preparations') { | |
if (BRANCH_NAME == 'develop') { |
map $http_host $MAGE_RUN_CODE { | |
hostnames; # indicates that values can be hostnames with prefix or suffix mask. | |
default base; | |
*.ch ch; | |
*.de de; | |
*.at at; | |
} | |
server { |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | |
<!-- We create our own virtual class because original Magento\Setup\Module\DataSetup cannot be instantiated when compilation enabled. --> | |
<virtualType name="Vendor\Module\Setup\Module\DataSetup" type="Magento\Setup\Module\DataSetup"> | |
<arguments> | |
<argument name="context" xsi:type="object">Magento\Framework\Module\Setup\Context</argument> | |
</arguments> | |
</virtualType> | |
<virtualType name="Vendor\Module\Eav\Setup\EavSetup" type="Magento\Eav\Setup\EavSetup"> | |
<arguments> | |
<argument name="setup" xsi:type="object">Vendor\Module\Setup\Module\DataSetup</argument> |
[mysqld] | |
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION | |
# https://expressionengine.com/blog/mysql-5.7-server-os-x-has-gone-away | |
interactive_timeout = 300 | |
wait_timeout = 300 | |
# https://github.com/Homebrew/legacy-homebrew/issues/47335 | |
table_open_cache = 250 |
<!-- Local Setups --> | |
<toolSet name="External Tools"> | |
<tool name="mg2 clear cache" showInMainMenu="true" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="false"> | |
<exec> | |
<option name="COMMAND" value="bin/magento" /> | |
<option name="PARAMETERS" value="cache:clean" /> | |
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/magento" /> | |
</exec> | |
</tool> | |
<tool name="mg2 generation flush" description="Flushs generated code like factories and proxies" showInMainMenu="true" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true"> |
<!-- module.xml --> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd"> | |
<module name="VendorName_ModuleName" setup_version="0.0.1" > | |
<sequence> | |
<module name="Magento_Config"/> | |
</sequence> | |
</module> | |
</config> | |
<!-- di.xml --> |
// module.xml | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd"> | |
<module name="VendorName_ModuleName" setup_version="0.0.1" > | |
<sequence> | |
<module name="Magento_Config"/> | |
</sequence> | |
</module> | |
</config> | |
// di.xml |