Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php functionMining()
- {
- "name": "v1ra",
- "commands": [
- {
- "name": "newCustom",
- "type": "custom",
- "attributes": {
- "goal": "Run",
- "previewUrl": ""
- },
- "commandLine": "echo \"hello\""
- },
- {
- "name": "run php script",
- "type": "custom",
- "attributes": {
- "goal": "Run",
- "previewUrl": ""
- },
- "commandLine": "[ -z ${editor.current.file.path} ] && echo \"Open a PHP file in the editor before executing this command.\" || php ${editor.current.file.path}"
- },
- {
- "name": "debug php script",
- "type": "custom",
- "attributes": {
- "goal": "Debug",
- "previewUrl": ""
- },
- "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}"
- },
- {
- "name": "start apache",
- "type": "custom",
- "attributes": {
- "goal": "Run",
- "previewUrl": "http://${server.port.80}/${current.project.relpath}"
- },
- "commandLine": "sudo service apache2 start && sudo tail -f /var/log/apache2/access.log -f /var/log/apache2/error.log"
- },
- {
- "name": "stop apache",
- "type": "custom",
- "attributes": {
- "goal": "Run",
- "previewUrl": ""
- },
- "commandLine": "sudo service apache2 stop"
- },
- {
- "name": "restart apache",
- "type": "custom",
- "attributes": {
- "goal": "Run",
- "previewUrl": "http://${server.port.80}/${current.project.relpath}"
- },
- "commandLine": "sudo service apache2 restart"
- }
- ],
- "projects": [],
- "environments": {
- "default": {
- "recipe": {
- "location": "eclipse/php",
- "type": "dockerimage"
- },
- "machines": {
- "dev-machine": {
- "attributes": {
- "memoryLimitBytes": "2147483648"
- },
- "servers": {},
- "agents": [
- "org.eclipse.che.exec",
- "org.eclipse.che.terminal",
- "org.eclipse.che.ws-agent",
- "org.eclipse.che.ssh",
- "org.eclipse.che.ls.php",
- "org.eclipse.che.ls.json"
- ]
- }
- }
- }
- },
- "defaultEnv": "default"
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement