Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ doc/sphinx/_build

res/ngclient/node_modules/
res/ngclient/app/components/

# Vagrant
.vagrant/
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,26 @@ and then start the server and follow the instructions:

(Leave out the --options for subsequent starts.)

Developing with Vagrant
-----------------------

1. Install [Vagrant](https://www.vagrantup.com/downloads.html)

2. Install [Virtualbox](https://www.virtualbox.org/)
3. Add a new Ubuntu box

```bash
vagrant box add ubuntu/trusty64
```

4. Clone this repo `git clone git://github.com/devsnd/cherrymusic.gitt`
5. Go to the repo `cd 2webm`
6. Launch the Development Environment

```bash
vagrant up
```
7. Navigate to localhost:8080 in a web browser. Changes you make in your local git repo will automatically appear on the website.

Requirements
------------
Expand Down
7 changes: 7 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Vagrant.configure("2") do |config|
# Base Ubuntu Box
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder ".", "/var/www"
config.vm.provision :shell, path: "bootstrap.sh"
config.vm.network :forwarded_port, guest: 8080, host: 8080
end
15 changes: 15 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# Update Ubuntu
apt-get update
apt-get upgrade -y

# Install Python Dependencies
apt-get install python-pip -y
pip install cherrypy

# Install Cherry Music additional packages
apt-get install imagemagick vorbis-tools lame flac -y

# Start Cherry Pi
python /var/www/cherrymusic --setup --port 8080