Skip to content

Commit

Permalink
Add "Run/Debug PHP script" commands to the PHP and Zend stacks (eclip…
Browse files Browse the repository at this point in the history
…se-che#3277)

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
  • Loading branch information
kaloyan-raev authored Dec 20, 2016
1 parent 254a3f4 commit 9779c43
Showing 1 changed file with 36 additions and 4 deletions.
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

0 comments on commit 9779c43

Please sign in to comment.