Trying to fix public folder resolution on travis

This commit is contained in:
DallonF
2012-11-02 14:05:03 -07:00
parent 2356e21ea5
commit 9f5b377268

View File

@@ -151,8 +151,8 @@ function addInternalResources(server, basepath, resources, fn) {
var publicFolderQ = Q.fcall(function() {
var defaultFolder = './public';
if (server.options && server.options.env) {
var altPublic = server.options && './public-' + server.options.env;
if (server.options && typeof server.options.env === 'string') {
var altPublic = './public-' + server.options.env;
var altPublicExistsQ = Q.defer();
fs.exists(altPublic, function(exists) {
altPublicExistsQ.resolve(exists);