- curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
- git clone --branch repository.git src
- docker-compose up -d
- bin/copytocontainer --all
- bin/composer install
- bin/magento module:enable --all
- bin/copyfromcontainer --all
- bin/magento setup:upgrade
- Define your access to app/etc/env.php
- bin/setup-ssl demo.local
After the installation you could have an error 404 at requirejs-config.js
For the solution follow next steps:
- Edit the config file at /etc/nginx/conf.d/website.conf. Find the lines:
if ($MAGE_MODE = "production") {
expires max;
}
Magento has the solution by default but the project should is in the root but if your project is in a sub-folder then you will have a problem recognizing the code new websites.
For Apache the solution is an index.php and .htaccess but if you using Nginx then follow the next steps:
- Create root categories
- Create websites
- Create stores
- Create store views
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 | |
class Task extends Threaded | |
{ | |
public $response; | |
public function scraping() | |
{ | |
$content = file_get_contents('https://www.amazon.com'); | |
preg_match('~<title>(.+)</title>~', $content, $matches); |
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 | |
class ResizeImage { | |
var $image; | |
var $image_type; | |
static function makeDir($path) { | |
return is_dir($path) || mkdir($path, 0777, true); | |
} | |
function load($filename) { | |
$image_info = getimagesize($filename); |
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
server { | |
listen 80; | |
#server_name example.com; | |
location / { | |
proxy_pass http://127.0.0.1:3000; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; |