]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
no bug - Update VS Code tasks with Docker commands
authorKohei Yoshino <kohei.yoshino@gmail.com>
Mon, 9 Mar 2020 16:27:13 +0000 (12:27 -0400)
committerGitHub <noreply@github.com>
Mon, 9 Mar 2020 16:27:13 +0000 (12:27 -0400)
.vscode/tasks.json
README.rst

index 2cd4907abf4b4f4f3ffd6f9a20f95b0b2ab19151..4b8a6f867b501baaa63d574079b354e92e61f8c1 100644 (file)
@@ -3,6 +3,23 @@
   // for the documentation about the tasks.json format
   "version": "2.0.0",
   "tasks": [
+    {
+      "label": "Docker: Start Web Server",
+      "type": "shell",
+      "command": "docker-compose up --build",
+      "group": "none",
+      "problemMatcher": []
+    },
+    {
+      "label": "Docker: Update Web Server",
+      "type": "shell",
+      "command": "docker-compose exec bmo.test rsync -avz --exclude .git --exclude local /mnt/sync/ /app/",
+      "group": {
+        "kind": "build",
+        "isDefault": true
+      },
+      "problemMatcher": []
+    },
     {
       "label": "Vagrant: Start VM",
       "type": "shell",
       "problemMatcher": []
     },
     {
-        "label": "Vagrant: Start Web Server",
-        "type": "shell",
-        "command": "vagrant ssh web -c 'start_morbo'",
-        "group": "none",
-        "problemMatcher": []
+      "label": "Vagrant: Start Web Server",
+      "type": "shell",
+      "command": "vagrant ssh web -c 'start_morbo'",
+      "group": "none",
+      "problemMatcher": []
     },
     {
       "label": "Vagrant: Update Web Server",
       "type": "shell",
       "command": "vagrant rsync web",
-      "group": {
-        "kind": "build",
-        "isDefault": true
-      },
+      "group": "build",
       "problemMatcher": []
     },
     {
index c0dfb99e3910c59e423db287c926007f2459f6a1..ad591768b229e24ab70d8d5ba0e787299a6b2b54 100644 (file)
@@ -163,14 +163,6 @@ or db is changed, do a full provision:
 
     vagrant rsync && vagrant provision
 
-If you are using Visual Studio Code, these commands will come in handy as the
-editor's `tasks`_ that can be found under the Terminal menu. The update command
-can be executed by simply hitting `Ctrl+Shift+B` on Windows/Linux or
-`Command+Shift+B` on macOS. An `extension bundle`_ for VS Code is also available.
-
-.. _`tasks`: https://code.visualstudio.com/docs/editor/tasks
-.. _`extension bundle`: https://marketplace.visualstudio.com/items?itemName=dylanwh.bugzilla
-
 Testing Auth delegation
 -----------------------
 
@@ -292,6 +284,14 @@ You can run the following command:
 The Mojolicious morbo development server, used by the web container, will notice any code changes and
 restart itself.
 
+If you are using Visual Studio Code, these ``docker-compose`` commands will come in handy as the
+editor's `tasks`_ that can be found under the Terminal menu. The update command is assigned to the
+default build task so it can be executed by simply hitting Ctrl+Shift+B on Windows/Linux or
+Command+Shift+B on macOS. An `extension bundle`_ for VS Code is also available.
+
+.. _`tasks`: https://code.visualstudio.com/docs/editor/tasks
+.. _`extension bundle`: https://marketplace.visualstudio.com/items?itemName=dylanwh.bugzilla
+
 
 Ensuring your Docker setup on Ubuntu 16.04
 ==========================================