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

Allow appInstall to <default-server> vhost #75

Closed
PhearZero opened this issue Oct 6, 2015 · 3 comments
Closed

Allow appInstall to <default-server> vhost #75

PhearZero opened this issue Oct 6, 2015 · 3 comments
Labels

Comments

@PhearZero
Copy link

Currently no option in appInstall to let the application use a zend server "default-server" vhost

@slaff
Copy link
Contributor

slaff commented Oct 7, 2015

@PhearZero - the installApp command has an option called "baseUri". Use it to point which existing zend server vhost you want to use. Let say you have a vhost called mycompany.com then you can deploy your application and link it to that host using a command similar to the one below

php zs-client.phar --zpk=<path/to/application>.zpk --baseUri=http://mycompany.com --target=<zend-server-target-name>

@PhearZero
Copy link
Author

Sorry for the delay. I am refering to the default vhost which can be deployed via the lighttp GUI as well as zs-manage via the appDeploy with the -d flag. I can deploy no problem to custom vhosts. I am using the ZendBamboo pattern which uses zs-client. There is no way in the cli to deploy to the default vhost via zs-client as it does with zs-manage app-deploy -p build.zpk -d

@slaff slaff added the question label Oct 13, 2015
@slaff
Copy link
Contributor

slaff commented Oct 15, 2015

Ok, yes it is possible to deploy on the default vhost. Just use the following flag --defaultServer=TRUE. From the help of the command you can see that

php zs-client.phar installApp --help 

--defaultServer =TRUE allows to "Deploy the application on the default server. The provided base URL will be ignored and replaced with ''. If this parameter and createVhost are both used, createVhost will be ignored. The default value is FALSE."

Example:

php zs-client.phar --defaultServer=TRUE --zpk=<path/to/application>.zpk --baseUri=http://mycompany.com/some/path --target=<zend-server-target-name>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants