Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fsspencer/docksal-dsal
Docksal Bash Script to automate the creation of a project
https://github.com/fsspencer/docksal-dsal
Last synced: 1 day ago
JSON representation
Docksal Bash Script to automate the creation of a project
- Host: GitHub
- URL: https://github.com/fsspencer/docksal-dsal
- Owner: fsspencer
- Created: 2018-03-20T16:30:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-29T15:07:11.000Z (about 5 years ago)
- Last Synced: 2024-11-05T10:13:49.087Z (about 2 months ago)
- Language: Shell
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DSAL bash script to create Magento projects using Docksal
This is a simple bash script which uses the Docksal Magento container and creates a light environment.
## Features
- Setup a Magento 1/2 project within minutes
- Import an existing Magento 1.x project by importing a .sql file
- Import an existing Magento 2.x project by importing a .sql file## Requirements
- Docker installed
- Docksal installed## Installation
### GlobalExecute the following command in your terminal in order to execute the installer. You need to have "git" and "curl" installed within your terminal.
bash <(curl -s -X GET "https://raw.githubusercontent.com/fsspencer/docksal-dsal/master/dsal?v='$(date +"%s")'") setup
This will install the `dsal` command in ~/.dsal/bin and create a symlink on the /usr/local/bin directory.
## Usage
dsal
Actions:
| Command | Description |
| ------- | ----------- |
||
| **init** | *Initialize Magento project* |
| **bash** | *Connect to your docker container* |
||
| **php** | *Executes php cli within your project root* |
| **composer** | *Executes composer within your project root* |
| **npm** | *Executes npm within your project root* |
| **n98** | *Executes n98-magerun within your project root* |
| **magento** | *Executes Magento 2 command line tool (e.g: dsal magento setup:upgrade)* |
| **phpunit** | *Executes Magento 2 PHPUnit using executable file located in vendor/bin* |
||
| **static:clean** | *Cleans static-content (only for M2)* |
| **config:url** | *Set the store URL and prepare the project for development* |
||
| **setup** | *Installs dsal command locally on your computer* |
| **self-update** | *Updates dsal locally on your computer* |
| **permissions** | *Resote magento file system permissions* |
| **xdebug:enable** | *Enable xDebug* |
| **xdebug:disable** | *Disable xDebug* |
| **ioncube:install** | *Install ionCube* |**NOTE:** All of this commands will work only for your project root directory. That means that if you want to use, for example, gulp on a specify directory within project project (e.g.: skin/frontend/myvendor/mytheme/) it won't work. In that case, you will need to use the "fin bash" command and navigate to that directory and use the gulp command from that place.
## Credits
- Francis S. Spencer -
- codealist.net