Credit: https://devdocs.magento.com/guides/v2.3/config-guide/redis/redis-pg-cache.html
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
define([], function() { | |
/** | |
* Sample Client Script | |
* @NApiVersion 2.x | |
* @NModuleScope Public | |
* @NScriptType ClientScript | |
*/ | |
/* === VARS === */ |
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
/** | |
*@NApiVersion 2.x | |
*@NScriptType Restlet | |
*/ | |
define( | |
[ | |
'N/search', | |
'N/record', | |
'N/cache', | |
'N/format' |
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
{ | |
"printWidth": 100, | |
"tabWidth": 4, | |
"useTabs": false, | |
"singleQuote": false, | |
"trailingComma": "none", | |
"braceStyle": "psr-2", | |
"requirePragma": false, | |
"insertPragma": false | |
} |
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
{ | |
"name": "trungpv/application", | |
... | |
"repositories": { | |
"dev-package": { | |
"type": "path", | |
"url": "relative/or/absolute/path/to/my/dev-package", | |
"options": { |
- Download source: https://magento.com/tech-resources/download
- Extract file:
# Ubuntu
unzip file.zip # .zip
tar -xzvf file.tar.gz # .tar.gz
cd <your Magento install dir>
find . -type f -exec chmod 644 {} \; // 644 permission for files
find . -type d -exec chmod 755 {} \; // 755 permission for directory
find ./var -type d -exec chmod 777 {} \; // 777 permission for var folder
find ./pub/media -type d -exec chmod 777 {} \;
find ./pub/static -type d -exec chmod 777 {} \;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml
chown -R :<web server group> .
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
<?php | |
namespace Deployer; | |
$startTime = microtime(true); | |
require 'recipe/common.php'; | |
// Project name | |
set('application', 'xxx'); |
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
# Optimized my.cnf configuration for MySQL/MariaSQL | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# === Updated December 2018 === | |
# | |
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores. | |
# If you have less or more resources available you should adjust accordingly to save CPU, | |
# RAM and disk I/O usage. | |
# The settings marked with a specific comment or the word "UPD" after the value |
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/bash | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt install apache2 -y | |
sudo apt install mysql-server -y | |
sudo mysql_secure_installation |