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

Add "Run/Debug PHP script" commands to the PHP and Zend stacks #3277

Merged
merged 1 commit into from
Dec 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 36 additions & 4 deletions ide/che-core-ide-stacks/src/main/resources/stacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@
"id": "php-default",
"creator": "ide",
"name": "PHP",
"description": "Default PHP Stack with PHP 5.5, most popular extensions and dockerimager.",
"description": "Default PHP Stack with PHP 5.6, most popular extensions and dockerimager.",
"scope": "general",
"tags": [
"Ubuntu",
Expand All @@ -604,7 +604,7 @@
"components": [
{
"name": "PHP",
"version": "5.5.9"
"version": "5.6.24"
},
{
"name": "Apache",
Expand Down Expand Up @@ -651,6 +651,22 @@
"defaultEnv": "default",
"description": null,
"commands": [
{
"name": "run php script",
"type": "custom",
"commandLine": "[ -z ${editor.current.file.path} ] && echo \"Open a PHP file in the editor before executing this command.\" || php ${editor.current.file.path}",
"attributes": {
"previewUrl": ""
}
},
{
"name": "debug php script",
"type": "custom",
"commandLine": "[ -z ${editor.current.file.path} ] && echo \"Open a PHP file in the editor before executing this command.\" || QUERY_STRING=\"start_debug=1&debug_host=localhost&debug_port=10137\" php ${editor.current.file.path}",
"attributes": {
"previewUrl": ""
}
},
{
"name": "start apache",
"type": "custom",
Expand Down Expand Up @@ -1858,11 +1874,11 @@
"components": [
{
"name": "PHP",
"version": "7.0.6"
"version": "7.0.11"
},
{
"name": "Zend Server",
"version": "9.0.0"
"version": "9.0.1"
},
{
"name": "Composer",
Expand Down Expand Up @@ -1897,6 +1913,22 @@
"defaultEnv": "default",
"description": null,
"commands": [
{
"name": "run php script",
"type": "custom",
"commandLine": "[ -z ${editor.current.file.path} ] && echo \"Open a PHP file in the editor before executing this command.\" || php ${editor.current.file.path}",
"attributes": {
"previewUrl": ""
}
},
{
"name": "debug php script",
"type": "custom",
"commandLine": "[ -z ${editor.current.file.path} ] && echo \"Open a PHP file in the editor before executing this command.\" || QUERY_STRING=\"start_debug=1&debug_host=localhost&debug_port=10137\" php ${editor.current.file.path}",
"attributes": {
"previewUrl": ""
}
},
{
"name": "restart zend server",
"type": "custom",
Expand Down