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
func "test" in deploy.php not working properly #1845
Comments
So, what do you think we need to fix? |
Well, first I want to find out if I've done anything wrong. |
Try |
Other tests:
Output:
Output:
(does not echo "true")
|
I found the problem. I am in the wrong workdir.
Maybe
|
Hmmm, but I think if it cd to dir it will break code for many mode devs. test('[[ -f {{release_path}}/{{typo3_webroot}}/typo3conf/LocalConfiguration.php && ! -s {{release_path}}/{{typo3_webroot}}/typo3conf/LocalConfiguration.php ]]') |
Maybe with optional parameter?
…On Thu, 23 May 2019, 08:22 Anton Medvedev, ***@***.***> wrote:
Hmmm, but I think if it cd to dir it will break code for many mode devs.
Now this is solution:
test('[[ -f {{release_path}}/{{typo3_webroot}}/typo3conf/LocalConfiguration.php && ! -s {{release_path}}/{{typo3_webroot}}/typo3conf/LocalConfiguration.php ]]')
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1845?email_source=notifications&email_token=ABBJODHN7LRLM7SJNDS3ORDPWYZYVA5CNFSM4HOJNTUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWBGBFY#issuecomment-495083671>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBJODCD2VHKXIECTCSOOLLPWYZYVANCNFSM4HOJNTUA>
.
|
Fixed in master. Please verify. |
Description
I am trying to figure out how I can test if its the first time running on a server when deploying a TYPO3 instance.
I figured I could check the filesize of "LocalConfiguration.php". If the created symlink filesize is 0, I know I run for the first time.
Steps to reproduce
Content of
deploy.php
The filesize (of a symlink file) is 0, therefore the if condition should match, (And it does match) but the condition won't get properly executed in PHP's world.
Output log
The text was updated successfully, but these errors were encountered: