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

separate bootstrap from server launch #96

Open
naturallymitchell opened this issue Dec 7, 2018 · 4 comments
Open

separate bootstrap from server launch #96

naturallymitchell opened this issue Dec 7, 2018 · 4 comments

Comments

@naturallymitchell
Copy link
Member

kinda undoing #43 (comment)

@Arnaz87
Copy link
Collaborator

Arnaz87 commented Dec 7, 2018

Necessary changes in lighttouch/torchbear.toml

# Torchbear configuration - fields have been set with their default values

[web-server]
address = "0.0.0.0"
port = "3000"

# These are the new lines
single_actor = "false"
bootstrap_path = "lighttouch-base/bootstrap.lua"

[general]
# Stays the same

And create lighttouch-base/bootstrap.lua

-- runs after init
log.info("Bootstrap phase")

And then each request will run init.lua again and then the handler with the request

@naturallymitchell
Copy link
Member Author

move runtime functions in loaders/ to launchers/.

@naturallymitchell
Copy link
Member Author

torchbear should log creation of new actors and which actor handles which request

@naturallymitchell
Copy link
Member Author

blocked by
jazzdotdev/jazz#74
jazzdotdev/jazz-libs#7

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

2 participants