We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
可以自己创建一个入口文件,并在其中调用egg-scripts或者调用你主框架的start-cluster方法。具体代码可以百度,或研读egg-scripts的代码。相当于egg-scripts包封装了入口文件,项目直接执行命令就行,pkg的话入口文件就得自己手写一个去启动。
Sorry, something went wrong.
egg-scripts
options
const { startCluster } = require('egg'); const options = { title: 'test', workers: 1, baseDir: '项目路径', framework: 'egg库路径' } startCluster(options);
const { Application } = require('egg'); const app = new Application({ mode: 'single', }); app.listen(7001, '127.0.0.1', () => { console.log('server start on http://127.0.0.1:7001'); });
No branches or pull requests
The text was updated successfully, but these errors were encountered: