From: Israel Madueme Date: Fri, 25 Jan 2019 15:48:53 +0000 (-0500) Subject: no bug - Update README and VS Code tasks for morbo dev server X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa7a11937d5459a93027847bfefcbd8f45f24dd5;p=thirdparty%2Fbugzilla.git no bug - Update README and VS Code tasks for morbo dev server Updates the readme to let new users know that they have to run `start_morbo` before they can visit bmo-web.vm. Also updates the VS Code tasks to work again. --- diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 160a859dc..2cd4907ab 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,23 +4,30 @@ "version": "2.0.0", "tasks": [ { - "label": "Vagrant: Start Local Server", + "label": "Vagrant: Start VM", "type": "shell", "command": "vagrant up", "group": "none", "problemMatcher": [] }, { - "label": "Vagrant: Suspend Local Server", + "label": "Vagrant: Suspend VM", "type": "shell", "command": "vagrant suspend", "group": "none", "problemMatcher": [] }, { - "label": "Vagrant: Update Local Server", + "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": "bash -c 'vagrant rsync && vagrant provision --provision-with update'", + "command": "vagrant rsync web", "group": { "kind": "build", "isDefault": true @@ -28,9 +35,9 @@ "problemMatcher": [] }, { - "label": "Vagrant: Force Update Local Server", + "label": "Vagrant: Force Update VM", "type": "shell", - "command": "bash -c 'vagrant rsync && vagrant provision'", + "command": "vagrant rsync && vagrant provision", "group": "build", "problemMatcher": [] }, diff --git a/README.rst b/README.rst index e19bc274e..b47aa1d56 100644 --- a/README.rst +++ b/README.rst @@ -50,7 +50,8 @@ From your BMO checkout run the following command: vagrant up -Depending on the speed of your computer and your Internet connection, this +Vagrant might ask to install some missing plugins it detected, you should install these. +Depending on the speed of your computer and your Internet connection, this entire process will take from a few minutes to much longer. If this fails, please file a bug `using this link `__. @@ -60,6 +61,8 @@ Otherwise, you should have a working BMO developer machine! To test it, you'll want to add an entry to /etc/hosts for bmo-web.vm pointing to 192.168.3.43. +Then you must start the development webserver with ``vagrant ssh web -c 'start_morbo'``. + After that, you should be able to visit http://bmo-web.vm/ from your browser. You can login as vagrant@bmo-web.vm with the password "vagrant01!" (without quotes). @@ -71,7 +74,7 @@ After editing files in the bmo directory, you will need to run .. code-block:: bash - vagrant rsync && vagrant provision --provision-with update + vagrant rsync web to see the changes applied to your vagrant VM. If the above command fails or db is changed, do a full provision: