Skip to content

Commit

Permalink
Re-add vagrant instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
manno committed Jan 2, 2019
1 parent ebcc8ac commit 0a835a4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Vagrant.md
@@ -0,0 +1,28 @@


#### Setup Vagrant Development Server

```
$ sudo apt-get install vagrant virtualbox
# or add media.ccc.vm to /etc/hosts instead
$ vagrant plugin install vagrant-hostsupdater
```

Start VM and download live data

```
$ vagrant up
$ vagrant ssh -c 'cd /vagrant && ./bin/update-data'
```

* http://media.ccc.vm:3000/ <- Frontend
* http://media.ccc.vm:3000/admin/ <- Backend
Username: admin@example.org
Password: media123

Running tests:
```
$ vagrant ssh
$ rails test
```
2 changes: 2 additions & 0 deletions Vagrantfile
Expand Up @@ -155,5 +155,7 @@ server {
NGINX
systemctl enable --now nginx
echo "cd /vagrant" >> .profile
SHELL
end

0 comments on commit 0a835a4

Please sign in to comment.