Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tail-Logs script #2

Open
graste opened this issue Sep 7, 2015 · 1 comment
Open

Tail-Logs script #2

graste opened this issue Sep 7, 2015 · 1 comment

Comments

@graste
Copy link
Member

graste commented Sep 7, 2015

As we want to switch away from the Makefile we might add bash scripts or put more scripts into the composer.json scripts section. I'd suggest PHP scripts that are callable directly in the bin/ folder instead of composer scripts for everything as that might be easier to debug for certain easy use-cases. For the Makefile::tail-logs I suggest a bin/tail-logs bash script:

#!/usr/bin/env bash

PHP_ERROR_LOG=$(php -i | grep -P '^error_log' | cut -f '3' -d " ")

tail -f "${PHP_ERROR_LOG}" app/log/*.log
@graste graste self-assigned this Sep 7, 2015
@MrHash
Copy link
Contributor

MrHash commented Sep 8, 2015

Makes sense but might be a compatibility issue when running on different platforms? Most likely OSX compatibility should be easy enough to ensure.. but Windows?

@graste graste removed their assignment Aug 6, 2016
graste added a commit that referenced this issue Jul 4, 2019
e.g. when switching from one sass compiler to another one in
different environments. Switching from (discontinued) ruby sass
which is the current default to the e.g. node sass can be done
by setting sass.cmd_tpl to "#1 #2 #3 #4 #5 #6".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants