# Configurar um ambiente de desenvolvimento usando Vagrant no Ubuntu

**URL:** https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277
**Category:** Development
**Tags:** how-to
**Created:** [5 Junho , 2016 14:54 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277 "2016-06-05T14:54:07Z")
**Posts on this page:** 11
**Page:** 2

<div class="post-metadata">

### Author: ![tarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tarek/32/124831_2.png) [@tarek](https://meta.discourse.org/u/tarek)
#### Post date: [31 Outubro , 2018 14:25 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/21 "2018-10-31T14:25:30Z")

</div>

The final decision as per @sam is to decline and close the pull request [as per here](https://github.com/discourse/discourse/pull/6524#issuecomment-434555912).

As such, this Vagrant branch can be merged over top of any currently existing discourse pull with the following method:

```plaintext
git remote add vagrant-tarek git@github.com:tareko/discourse.git
git merge vagrant-tarek/master

```

@Sam suggests that we should be using a docker dev environment, so perhaps if you have never done Discourse development on Vagrant, then look at that first and make sure you want this unsupported method if not.

---

<div class="post-metadata">

### Author: ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)
#### Post date: [31 Outubro , 2018 16:44 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/22 "2018-10-31T16:44:28Z")

</div>

I’d suggest building the vagrant file alongside a script that also pulls and mounts discourse up separately (or as a submodule) - that might make it easier for you to maintain a repository for vagrant-ing your Discourse workflow.

It should be be pretty simple to set up from what you’ve got so far, and that way you wouldn’t have to deal with maintaining a straight up fork.

---

<div class="post-metadata">

### Author: ![tarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tarek/32/124831_2.png) [@tarek](https://meta.discourse.org/u/tarek)
#### Post date: [31 Outubro , 2018 18:19 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/23 "2018-10-31T18:19:17Z")

</div>

Thank you for the advice. I’ll look at how to do this more rationally when I have a bit of time for it. In the meantime, I managed to [fix my plugin](https://meta.discourse.org/t/allow-reply-to-individual-instead-of-topic-forum-mailing-list-feature/44905), so glad I was at least able to get the environment going. If nothing else, the familiar Vagrant is ideal for idiots like me who want to drop in very occasionally without learning a new dev setup.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [8 Novembro , 2018 13:00 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/24 "2018-11-08T13:00:12Z")

</div>

I’ve seen you recommend this several times. Perhaps this topic (and other development topics) should be edited to include this recommendation. I just recommended it to someone and it was hard to find.

---

<div class="post-metadata">

### Author: ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)
#### Post date: [8 Novembro , 2018 14:49 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/25 "2018-11-08T14:49:59Z")

</div>

I’ll be creating a separate howto topic for the Docker-based development setup in the next few days, thanks for the tip 👍

EDIT: Here’s the new topic: [Install Discourse for development using Docker](https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009) 😉

---

<div class="post-metadata">

### Author: ![tarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tarek/32/124831_2.png) [@tarek](https://meta.discourse.org/u/tarek)
#### Post date: [16 Novembro , 2018 12:17 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/26 "2018-11-16T12:17:38Z")

</div>

Thank you for doing this. I also took @sam’s advice and figured out docker development. WOW, huge improvement!

---

<div class="post-metadata">

### Author: ![Tgr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgr/32/103367_2.png) [@Tgr](https://meta.discourse.org/u/Tgr)
#### Post date: [6 Janeiro , 2019 19:45 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/27 "2019-01-06T19:45:34Z")

</div>

Fails at the `bundle exec rake` step with `Discourse requires Ruby 2.5.2 or up`. The box is based on Ubuntu 18.04 which has Ruby 2.5.1.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6 Janeiro , 2019 21:42 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/28 "2019-01-06T21:42:50Z")

</div>

I recommend using the docker setup, closing this topic, vagrant setup is unmaintained and broken

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6 Janeiro , 2019 21:43 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/29 "2019-01-06T21:43:01Z")

</div>



---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [22 Setembro , 2022 17:53 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/30 "2022-09-22T17:53:02Z")

</div>



---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [22 Setembro , 2022 17:53 UTC](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277/31 "2022-09-22T17:53:05Z")

</div>



[Previous page](https://meta.discourse.org/t/superseded-set-up-a-development-environment-using-vagrant-on-ubuntud/45277.md?page=1)
