Giter Site home page Giter Site logo

yvoronoy / m2install Goto Github PK

View Code? Open in Web Editor NEW
81.0 81.0 43.0 564 KB

Magento 2 Bash Install/Restore Script

Home Page: http://magento.com/

License: GNU General Public License v2.0

Shell 98.02% Dockerfile 0.23% Jinja 0.16% HCL 1.52% Smarty 0.07%
magento magento-bash magento-bash-scripts magento-cli magento2

m2install's People

Contributors

aabumuslimov avatar abumuslimov avatar agorbivskyi avatar awktion avatar biyoum avatar cgarrigues avatar glo47154 avatar isitnikov avatar katmoon avatar novykov avatar o-rykh avatar radek-ziemniewicz avatar rimomcosta avatar robertorubino avatar snosov avatar soklymeach avatar valdislav avatar xeonkiev avatar ytorbyk avatar yvoronoy avatar yyevgenii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

m2install's Issues

Script doesn't working correctly when BASE PATH is /

Script should works correctly when for base urls like:
site1.com
site2.com
site3.com

Because at now it works correctly only in case when you deploy magento in subfolders
site1.com/instance1
site2.com/instance2

Issue with warning in DB dump

My dumps started from lines:

Warning: Using a password on the command line interface can be insecure.
mysqldump: Couldn't find table: "log_customer"
mysqldump: Couldn't find table: "log_quote"
mysqldump: Couldn't find table: "log_summary"
mysqldump: Couldn't find table: "log_summary_type"
mysqldump: Couldn't find table: "log_url"
mysqldump: Couldn't find table: "log_url_info"
mysqldump: Couldn't find table: "log_visitor"
mysqldump: Couldn't find table: "log_visitor_info"
mysqldump: Couldn't find table: "log_visitor_online"
mysqldump: Couldn't find table: "index_event"
mysqldump: Couldn't find table: "index_process_event"
-- MySQL dump 10.13  Distrib 5.6.28, for Linux (x86_64)

Your script can't remove first one.
Please, fix it ASAP!!!

Add check required tools

Script should check required tools and throw error if there is no required tools:

  • php
  • composer
  • mysql
  • mysqladmin
  • git
  • printf
  • echo
  • cat
  • basename
  • pwd
  • tar
  • gunzip
  • sed
  • tr
  • grep
  • mkdir
  • wget
  • cp
  • mv
  • rm
  • find
  • chmod
  • date
  • expr

Implement --step param

Implement --step params and add ability run partial step:

  • restore-db
  • restore-code
  • configure-db
  • configure-files
  • configure - it configures both configuration in DB and in Files.

Examples:

  • m2install.sh --step configure-db
  • m2install.sh --step restore-db,configure-db
  • m2install.sh --step restore-code,configure-files,configure-db

Use Cases
Imagine you restore DB dump manually and you will need update DB configuration.
You restore code & DB dumps and then you will have changed the code, you will need restore code dump without DB.

Can't extract zip dumps

You can specify paths to --code-dump and --db-dump
m2install.sh --code-dump c6f70277cd3e3b773e787b3c.zip --db-dump c6f70277cd3e3b773e787b3c14.sql.gz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.