Update website
This commit is contained in:
parent
e14f4d832f
commit
9241492267
|
@ -1,30 +1,21 @@
|
|||
# Vagrant Website
|
||||
|
||||
This subdirectory contains the entire source for the [Vagrant Website](https://www.vagrantup.com/).
|
||||
This is a [Middleman](http://middlemanapp.com) project, which builds a static
|
||||
site from these source files.
|
||||
This subdirectory contains the entire source for the [Vagrant Website][vagrant].
|
||||
This is a [Middleman][middleman] project, which builds a static site from these
|
||||
source files.
|
||||
|
||||
## Contributions Welcome!
|
||||
|
||||
If you find a typo or you feel like you can improve the HTML, CSS, or
|
||||
JavaScript, we welcome contributions. Feel free to open issues or pull
|
||||
requests like any normal GitHub project, and we'll merge it in.
|
||||
JavaScript, we welcome contributions. Feel free to open issues or pull requests
|
||||
like any normal GitHub project, and we'll merge it in.
|
||||
|
||||
## Running the Site Locally
|
||||
|
||||
To run the site locally, clone this repository and run:
|
||||
Running the site locally is simple. Clone this repo and run `make website`.
|
||||
|
||||
```shell
|
||||
$ make website
|
||||
```
|
||||
Then open up `http://localhost:4567`. Note that some URLs you may need to append
|
||||
".html" to make them work (in the navigation).
|
||||
|
||||
You must have Docker installed for this to work.
|
||||
|
||||
Alternatively, you can manually run the website like this:
|
||||
|
||||
```shell
|
||||
$ bundle
|
||||
$ bundle exec middleman server
|
||||
```
|
||||
|
||||
Then open up `http://localhost:4567`.
|
||||
[middleman]: https://www.middlemanapp.com
|
||||
[vagrant]: https://www.vagrantup.com
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
$script = <<SCRIPT
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y install curl
|
||||
sudo su -l -c 'gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3' vagrant
|
||||
sudo su -l -c 'curl -L https://get.rvm.io | bash -s stable --auto-dotfiles' vagrant
|
||||
sudo su -l -c 'rvm install 2.2.2' vagrant
|
||||
sudo su -l -c 'rvm --default use 2.2.2' vagrant
|
||||
sudo su -l -c 'gem install bundler' vagrant
|
||||
sudo su -l -c 'cd /vagrant && bundle install --jobs 2' vagrant
|
||||
SCRIPT
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "hashicorp/precise64"
|
||||
config.vm.network "private_network", ip: "33.33.33.10"
|
||||
config.vm.provision "shell", inline: $script, privileged: false
|
||||
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
||||
end
|
Loading…
Reference in New Issue