Skip to content
New issue

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

egg-scripts multiple application #3510

Closed
sm2017 opened this issue Mar 2, 2019 · 4 comments
Closed

egg-scripts multiple application #3510

sm2017 opened this issue Mar 2, 2019 · 4 comments

Comments

@sm2017
Copy link

sm2017 commented Mar 2, 2019

I have 2 egg application in

/home/project/myApp1
/home/project/myApp2

When In /home/project/myApp2 I run yarn start It crashes with error

 ERROR 25681 nodejs.MODULE_NOT_FOUNDError: [egg-core] load file: /home/project/myApp1/app/schedule/mySchedule.js, error: Cannot find module './myModule'

Why the error is from myApp1? I want to start myApp2 , both app are Independence

@sm2017
Copy link
Author

sm2017 commented Mar 2, 2019

it seems , When I run yarn start from /home/project/myApp2 , /home/project/myApp1 is started included!!

I have some typo issue in myApp1 i.e. './MyModule' instead of './myModule' , But I am wondering , Why when I start /home/project/myApp2 it include /home/project/myApp1 too and egg put logs in /home/project/logs instead of /home/project/myApp2/logs

@egg-bot
Copy link

egg-bot commented Mar 6, 2019

Hello @sm2017. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.


@sm2017,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

@popomore
Copy link
Member

popomore commented Mar 6, 2019

@egg-bot
Copy link

egg-bot commented Mar 14, 2019

This issue is closed because it has been marked as Need Reproduce, but has not had recent activity.
If you can provide a reproduce, feel free to ping anyone of our maintainers to reopen this issue.
Thank you for your contributions.

@egg-bot egg-bot closed this as completed Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants