Merge pull request #1020 from padhg/omit-uri-scheme

Allow omission of URI Scheme in config.js url
This commit is contained in:
Hannah Wolfe 2013-10-15 12:26:18 -07:00
commit 930309363d
2 changed files with 3 additions and 3 deletions

View File

@ -60,8 +60,8 @@ function validateConfigEnvironment() {
}
// Check that our url is valid
parsedUrl = url.parse(config.url || 'invalid');
if (!parsedUrl.protocol || !parsedUrl.host) {
parsedUrl = url.parse(config.url || 'invalid', false, true);
if (!parsedUrl.host) {
errors.logError(new Error('Your site url in config.js is invalid.'), config.url, 'Please make sure this is a valid url before restarting');
return when.reject();
}

View File

@ -16,7 +16,7 @@
<link rel="shortcut icon" href="/favicon.ico">
<meta http-equiv="cleartype" content="on">
<link rel="stylesheet" type='text/css' href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,700'>
<link rel="stylesheet" type='text/css' href='//fonts.googleapis.com/css?family=Open+Sans:400,300,700'>
<link rel="stylesheet" href="/ghost/css/screen.css">
{{{block "pageStyles"}}}
</head>