所以我正在使用Digital Ocean。
我已经为这个项目开始了新鲜事,所以我创建了一个Droplet,安装了Debian 7和Apache 2(没有改动,就像这样)。
我正在尝试关注this教程。
现在我跟着它写信,相应地调整我的变量。
一切似乎都很好,即使我推文件夹也没有任何错误。
然而在此之后没有任何事情发生。我的服务器IP地址全部进入我的浏览器,但它只是加载的默认Apache索引。
我已经三次检查我的服务器安装了Ruby,Jekyll和git,我的本地环境也是如此。
这是我的收件后文件(根据教程我已经chmod了)
#!/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
我已仔细检查以确保我的回购位置在正确的位置。
那么有人知道可能是什么问题吗?我已经尝试了我能想到的一切,但没有任何效果。
希望很明显我对此很陌生,所以我接受我毫无疑问在某个地方出现了一个菜鸟错误。
编辑:以下是我的虚拟主机设置:
<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>
添加新文件并推送后的错误报告:
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>'