0
내가 난 아직 할 수 rake deploy
을 실행할 때 내가 rake preview
모든 것이 제대로 실행 실행하면 Octopress로드되지 CSS를
내가 http://xxx:4000
을 액세서 수 있고, 블로그
을 잘 보이는 Nginx에
에 Octopress 구성에 문제가 있어요http://xxxx/octopress
에 액세스 블로그하지만처럼 보이는 어떤 CSS/JS
내가 코드를 탐구하고 CSS를되는 링크 screen.css 접촉을 시도 하지만 여기 http://xxxx/octopress/stylesheets/screen.css
해야는 Rakefile에서 추출하고 _config.yml
conf의
# ----------------------- #
# Main Configs #
# ----------------------- #
url: http://xxxxx/octopress/
title: Lux Baptiste
subtitle: Moui Moui
author: Lux
simple_search: https://www.google.com/search
description:
레이크 난 내의 nginx의 serverblock 가입
## -- Rsync Deploy config -- ##
# Be sure your public key is listed in your server's ~/.ssh/authorized_keys file
ssh_user = "[email protected]"
ssh_port = "22"
document_root = "/var/www/octopress/"
rsync_delete = false
rsync_args = "" # Any extra arguments to pass to rsync
deploy_default = "rsync"
, 몰라 경우 수 도움
server {
### This setting tells Nginx to use this configuration if it gets a request for
### yourblog.com
server_name _;
### This is the location on the web server where your Octopress files are
### published. Setting this here means you don't have to set it for any of the
### individual locations you define below.
root /var/www/octopress;
### This tells Nginx to use "index.html" as the default index page everywhere
index index.html;
### This disables automatic directory index creation, since no one will be
### browsing your directories anyway
autoindex off;
### Here we define the root location...
location/{
### ...and then work some magic with "try_files", telling Nginx that for every
### request that comes in to /, it should first try to serve the URI exactly
### as it is, and if it doesn't find anything by that name to then try and
### serve the URI as a directory, and if it doesn't find a directory by that
### name to then spit out a 404 error and give up.
try_files $uri $uri/ =404;
}
### This location definition prevents Nginx from serving any files which begin
### with a dot, and further to not log any access attempts or 404s for files
### which begin with dots, to keep your access and error logs clean.
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
### This location definition prevents Nginx from serving any files which begin
### with a dollar sign, so Nginx will refuse to serve out a temp file if you
### are doing any editing inside a web-available directory
location ~ ~$ {
access_log off;
log_not_found off;
deny all;
}
### These next two locations simply prevent Nginx from logging every time the
### favicon & robots.txt files are accessed, to keep the logs clean
location = /robots.txt {
access_log off;
log_not_found off;
}
location = /favicon.ico {
access_log off;
log_not_found off;
}
}
본 적이 있습니까? http://octopress.org/docs/deploying/subdir/ –
옙, 나는 이것을 고쳤습니다. 지금 고쳐 주셔서 고마워요. –