// 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": []
},
{
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
-----------------------
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
==========================================