mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-29 00:51:30 +08:00
Trying to fix public folder resolution on travis
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user