简体   繁体   English

是否可以配置将geddy.js用作“公共”文件夹?

[英]Is it possible to configure which folder geddy.js is going to use as 'public'?

This is my basic webapp folder structure: 这是我的基本webapp文件夹结构:

-> server
   |-> all geddy.js files (is a REST app)
-> client (angularjs managed with yeoman)
   |-> app
   |-> test
   |-> [...]

As I am in development mode I have not yet 'built' my client app into the public folder of the geddy.js app. 由于我处于开发模式,因此尚未将客户端应用“构建”到geddy.js应用的公用文件夹中。 So is it possible to point the 'public' directory to my 'client/app' directory via a config setting? 那么是否可以通过配置设置将“公共”目录指向“客户端/应用”目录? Or am I totally using the wrong approach? 还是我完全使用了错误的方法?

Thanks 谢谢

Found the solution by looking in the terminal output. 通过查看终端输出找到解决方案。 It prints the config object: 它显示配置对象:

var config = {
 detailedErrors: true
 , debug: true
 , hostname: null
 , staticFilePath: 'path/to/public'
[..]

}; };

So adding: 因此添加:

staticFilePath: 'path/to/public'

to the config object makes sense :) 到config对象很有意义:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM