Update website
This commit is contained in:
parent
e14f4d832f
commit
9241492267
|
@ -1,30 +1,21 @@
|
||||||
# Vagrant Website
|
# Vagrant Website
|
||||||
|
|
||||||
This subdirectory contains the entire source for the [Vagrant Website](https://www.vagrantup.com/).
|
This subdirectory contains the entire source for the [Vagrant Website][vagrant].
|
||||||
This is a [Middleman](http://middlemanapp.com) project, which builds a static
|
This is a [Middleman][middleman] project, which builds a static site from these
|
||||||
site from these source files.
|
source files.
|
||||||
|
|
||||||
## Contributions Welcome!
|
## Contributions Welcome!
|
||||||
|
|
||||||
If you find a typo or you feel like you can improve the HTML, CSS, or
|
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
|
JavaScript, we welcome contributions. Feel free to open issues or pull requests
|
||||||
requests like any normal GitHub project, and we'll merge it in.
|
like any normal GitHub project, and we'll merge it in.
|
||||||
|
|
||||||
## Running the Site Locally
|
## 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
|
Then open up `http://localhost:4567`. Note that some URLs you may need to append
|
||||||
$ make website
|
".html" to make them work (in the navigation).
|
||||||
```
|
|
||||||
|
|
||||||
You must have Docker installed for this to work.
|
[middleman]: https://www.middlemanapp.com
|
||||||
|
[vagrant]: https://www.vagrantup.com
|
||||||
Alternatively, you can manually run the website like this:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
$ bundle
|
|
||||||
$ bundle exec middleman server
|
|
||||||
```
|
|
||||||
|
|
||||||
Then open up `http://localhost:4567`.
|
|
||||||
|
|
|
@ -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