Advertisement
Guest User

huri

a guest
May 28th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.36 KB | None | 0 0
  1. <?php functionMining()
  2. {
  3.   "name": "v1ra",
  4.   "commands": [
  5.     {
  6.       "name": "newCustom",
  7.       "type": "custom",
  8.       "attributes": {
  9.         "goal": "Run",
  10.         "previewUrl": ""
  11.       },
  12.       "commandLine": "echo \"hello\""
  13.     },
  14.     {
  15.       "name": "run php script",
  16.       "type": "custom",
  17.       "attributes": {
  18.         "goal": "Run",
  19.         "previewUrl": ""
  20.       },
  21.       "commandLine": "[ -z ${editor.current.file.path} ] && echo \"Open a PHP file in the editor before executing this command.\" || php ${editor.current.file.path}"
  22.     },
  23.     {
  24.       "name": "debug php script",
  25.       "type": "custom",
  26.       "attributes": {
  27.         "goal": "Debug",
  28.         "previewUrl": ""
  29.       },
  30.       "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}"
  31.     },
  32.     {
  33.       "name": "start apache",
  34.       "type": "custom",
  35.       "attributes": {
  36.         "goal": "Run",
  37.         "previewUrl": "http://${server.port.80}/${current.project.relpath}"
  38.       },
  39.       "commandLine": "sudo service apache2 start && sudo tail -f /var/log/apache2/access.log -f /var/log/apache2/error.log"
  40.     },
  41.     {
  42.       "name": "stop apache",
  43.       "type": "custom",
  44.       "attributes": {
  45.         "goal": "Run",
  46.         "previewUrl": ""
  47.       },
  48.       "commandLine": "sudo service apache2 stop"
  49.     },
  50.     {
  51.       "name": "restart apache",
  52.       "type": "custom",
  53.       "attributes": {
  54.         "goal": "Run",
  55.         "previewUrl": "http://${server.port.80}/${current.project.relpath}"
  56.       },
  57.       "commandLine": "sudo service apache2 restart"
  58.     }
  59.   ],
  60.   "projects": [],
  61.   "environments": {
  62.     "default": {
  63.       "recipe": {
  64.         "location": "eclipse/php",
  65.         "type": "dockerimage"
  66.       },
  67.       "machines": {
  68.         "dev-machine": {
  69.           "attributes": {
  70.             "memoryLimitBytes": "2147483648"
  71.           },
  72.           "servers": {},
  73.           "agents": [
  74.             "org.eclipse.che.exec",
  75.             "org.eclipse.che.terminal",
  76.             "org.eclipse.che.ws-agent",
  77.             "org.eclipse.che.ssh",
  78.             "org.eclipse.che.ls.php",
  79.             "org.eclipse.che.ls.json"
  80.           ]
  81.         }
  82.       }
  83.     }
  84.   },
  85.   "defaultEnv": "default"
  86. }
  87. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement