This section describes how to use the existing github repository with the Stratos 2.0 Environment.
...
Login to Stratos 2.0 using CLI.
Code Block $./stratos.sh admin@telecom.org password
Subscribe to the PHP Cartridge.
Code Block stratos>subscribe php myphpapp --repoURL <git-repo-url> --username <username> --password <password>
Code Command Argument DescriptionSyntax Description php
PHP Cartridge myphpapp
Alias name for the PHP application. repoURL
URL of the GIT repository containing the myphpapp.
Example: https://github.com/lakwarus/myphpapp.gitusername
Username for provided GIT account. password
Password for provided GIT account. The
myphpapp
application is now ready to use. You can now add your own domain URL to access your application. For more information see Custom domain mapping.
...
You have successfully registered your own domain with Stratos2. To access the application use the following URL.
http://myphp.com:8082- Upload your applications to your own github repo at the following location:
https://github.com/lakwarus/myphpapp.git
Now inform Stratos2 about your applications. For more information see Setting a service hook at Github.
...
- Go to the the GitHub website.
https://github.com/lakwarus/myphpapp.git - Select repository.
- Click Goto Settings.
- Click Service Hooks.
The list of available service hooks will appear. - Click the WebHook URLs option.
- Add ADC Notification Service in the URL textbox.
Example: https://stratos-controller-host:9445/repo_notification - Click Update Settings.