Mailhog Requires Go 1.4+ to run so we will install GO language in system.
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
#etc/nginx/sites-available | |
map $http_host $MAGE_RUN_CODE { | |
ecc-m234-s1.vm ubs_view; | |
} | |
server { | |
listen 80; | |
server_name mystore.com mystore.de mystore.es; | |
set $MAGE_ROOT /path/to/your/magento2; | |
set $MAGE_MODE default; |
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
rm -rf var/cache/* generated/* var/view_preprocessed/* pub/static/* |
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
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 |
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 bin/magento setup:install --base-url=http://ecc-m231.vm/ --db-host=localhost --backend-frontname=admin1234 --db-name=magento --db-user=root --db-password=nga3Quae* --admin-firstname=myname --admin-lastname=mylastname [email protected] --admin-user="admin" --admin-password=Test@123456 --language=en_GB --currency=GBP --timezone=Europe/London --use-rewrites=1 |
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
## Example configuration: | |
# upstream fastcgi_backend { | |
# # use tcp connection | |
# # server 127.0.0.1:9000; | |
# # or socket | |
# server unix:/var/run/php/php7.0-fpm.sock; | |
# } | |
# server { | |
# listen 80; | |
# server_name mage.dev; |
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 | |
//Note name children with unique names | |
//<store_attachments> | |
// <store_1></store_1> | |
// | |
//</store_attachments> | |
$value = Mage::getConfig()->getNode('store_attachemnts')->asArray(); | |
// or | |
$value = Mage::getConfig()->getNode('default/store_attachemnts')->asArray(); |
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
#! /bin/bash | |
db_name='ofl_local' | |
remotedb='https://s3-eu-west-1.amazonaws.com/jbgbackups/ofldotcom/ofldotcom.sql.dump.gz' | |
cd /var/www/vhosts/oakfurnitureland.com/production/htdocs | |
wget $remotedb | |
echo "...Unzip ofl database" | |
gunzip ofldotcom.sql.dump.gz |
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 | |
require_once('abstract.php'); | |
class Space48_Shell_ProductIds extends Mage_Shell_Abstract | |
{ | |
/** | |
* Entry point | |
*/ |
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 | |
require_once('abstract.php'); | |
class Space48_Shell_Bundle_Options extends Mage_Shell_Abstract | |
{ | |
/** | |
* Entry point | |
*/ |
NewerOlder