Commit Graph

14 Commits

Author SHA1 Message Date
Dawid Makowski 0d08d36bd3
Adding artisan & art autocomplete in BASH 2022-10-13 12:46:21 +08:00
Damien PATOU 191729fb32 remove the 'tree' alias 2020-10-07 16:28:36 +02:00
Alex Mayer 53ca88714c Map cll And cla Aliases To Correct Commands (#1696) 2019-02-09 19:58:12 +08:00
Atef Ben Ali e0dc683d3f Add `gloga` alias (#1970)
This add `git log --oneline --decorate --graph --all` command alias.
2019-02-09 19:25:50 +08:00
Atef Ben Ali 163eb1f73a add more `git` aliases (#1922) 2019-01-08 15:34:18 +08:00
Pavel c1e8e955a1 Fix typo in seed alias (#1843) 2018-11-13 20:54:02 +08:00
Alex Mayer 70c1be4168 Point ea Alias To Correct File (#1698) 2018-09-16 17:58:26 +08:00
Taufek Johar 881cbfb8c2 Install Dependencies to Run Dusk Tests
**Why we need this change?**

Currently we are unable to run Dusk (Browser) tests in workspace container. This change,
is to allow us to install all dependencies needed to run Dust test which consists of

1. Linux packages such as xvfb (x-virtual frame buffer to run browser in headless container) and etc.
2. Chrome browser.
3. Chrome driver.

To install the Dusk dependencies.
1. Update `WORKSPACE_INSTALL_DUSK_DEPS` to true.
2. Run `docker-compose build workspace`.

I've also added couple of aliases to facilitate the preparation of test environment.

1. xvfb = `Xvfb -ac :0 -screen 0 1024x768x16 &` (run x-virtual frame buffer in the background)
2. serve = `php artisan serve --quiet &` (run laravel app in the background)

Once those are installed, we will need to update the default chrome driver argument in Laravel 5.5
from `--headless` to `sandbox`. Below are the steps to run Dusk in workspace.

1. `docker-compose run workspace bash` (get into workspace).
2. `laravel new dusk-test` (generate new lavarel app for testing purpose).
3. `cd dusk-test` (change directory to newly generate app folder).
4. `composer install --dev laravel/dusk` (install dusk via composer).
5. `php artisan dusk:install` (generate dusk files).
6. `sed -i '/APP_URL/d' .env` (remove APP_URL entry in .env)
7. `echo 'APP_URL=localhost:8000' >> .env` (add new APP_URL entry in .env)
8. `sed -i--'s/headless/no-sandbox/g' tests/DuskTestCase.php` (replace the default chrome driver argument).
9. `xvfb` (alias to run Xvfb instance in the background).
10. `serve` (alias to run laravel app in the background).
11. `dusk` (alias to run Dusk test).
2017-10-02 20:08:01 +08:00
Taufek Johar 8c1e71eca5 Add artisan aliases
Added below php artisan commonly used aliases:

```
dusk =  php artisan dusk
fresh = php artisan migrate:fresh
refresh = php artisan migrate:refresh
rollback = php artisan migrate:rollback
```
2017-09-24 22:16:04 +08:00
Mahmoud Zalt 4977b0f92f fix alias for phpunit to load from current directory 2017-08-07 12:06:11 +03:00
Mahmoud Zalt 004e4354aa add more aliases and functions for better development in the workspace 2017-08-03 08:06:48 +03:00
Mahmoud Zalt d99cf73bf0 edit alias, use the phpunit of the project 2017-08-03 07:31:41 +03:00
BAGArt 9348dd95a0 Issues 563 (#580)
* https://github.com/laradock/laradock/issues/563
hotfix

* https://github.com/laradock/laradock/issues/563
\r

* https://github.com/laradock/laradock/issues/563
\r
2017-02-05 11:03:41 -05:00
Mike Erickson b52dcd4a19 540 added alias support (#557)
* 540 added alias support

* Updated aliases, added content to README.md
2017-01-17 19:09:05 -05:00