So I'm using Digital Ocean.
I have started fresh for this project, so I have created a droplet, install Debian 7 and Apache 2 (no alterations, just as is).
I am trying to follow this tutorial.
Now I followed it letter for letter, adjusting my vars accordingly.
All seems good and I don't get any errors, even when I push my folder.
However nothing happens after that. My servers IP address is all in entering into my browser, but it's just the default Apache index that gets loaded.
I have triple checked that my server has Ruby, Jekyll and git installed, as does my local environment.
This is my post-receive file (which I have chmod'd as per the tutorial)
#!/bin/bash -l
GIT_REPO=$HOME/repos/portfolio.git
TMP_GIT_CLONE=$HOME/tmp/git/portfolio
PUBLIC_WWW=/var/www
git clone $GIT_REPO $TMP_GIT_CLONE
jekyll build --source $TMP_GIT_CLONE --destination $PUBLIC_WWW
rm -Rf $TMP_GIT_CLONE
exit
I have double checked to make sure my repo is in the correct place.
So does anybody have some idea what might be the issue? I have tried everything I can think of, but nothing is working.
Hopefully it's clear I'm quite new to this, so I accept I've no doubt made a rookie error somewhere along the lines.
Edit: Here are my Virtual Host settings:
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
An error report after adding a new file and pushing:
remote: /usr/local/rvm/gems/ruby-2.0.0-p576/gems/execjs-2.2.2/lib/execjs/runtimes.rb:51:in ‘autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/execjs-2.2.2/lib/execjs.rb:5:in ‘<module:ExecJS>'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/execjs-2.2.2/lib/execjs.rb:4:in ‘<top (required)>'
remote:     from /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in ‘require'
remote:     from /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in ‘require'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/coffee-script-2.3.0/lib/coffee_script.rb:1:in ‘<top (required)>'
remote:     from /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in ‘require'
remote:     from /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in ‘require'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/coffee-script-2.3.0/lib/coffee-script.rb:1:in ‘<top (required)>'
remote:     from /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in ‘require'
remote:     from /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in ‘require'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/jekyll-coffeescript-1.0.1/lib/jekyll-coffeescript.rb:2:in ‘<top (required)>'
remote:     from /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in ‘require'
remote:     from /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in ‘require'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/jekyll-2.4.0/lib/jekyll/deprecator.rb:46:in ‘block in gracefully_require'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/jekyll-2.4.0/lib/jekyll/deprecator.rb:44:in ‘each'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/jekyll-2.4.0/lib/jekyll/deprecator.rb:44:in ‘gracefully_require'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/jekyll-2.4.0/lib/jekyll.rb:141:in ‘<top (required)>'
remote:     from /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in ‘require'
remote:     from /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in ‘require'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/jekyll-2.4.0/bin/jekyll:6:in ‘<top (required)>'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/bin/jekyll:23:in ‘load
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/bin/jekyll:23:in ‘<main>'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/bin/ruby_executable_hooks:15:in ‘eval'
remote:     from /usr/local/rvm/gems/ruby-2.0.0-p576/bin/ruby_executable_hooks:15:in ‘<main>'
