mirror of
https://github.com/appy-one/acebase-server.git
synced 2026-05-24 22:01:28 -06:00
[GH-ISSUE #49] Attach to an existing server #18
Labels
No labels
bug
enhancement
feature request
pull-request
types
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-server#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Azarattum on GitHub (Nov 23, 2022).
Original GitHub issue: https://github.com/appy-one/acebase-server/issues/49
Let's say we already have a node
httpserver instance running. It would be nice to be able to attachacebaseto that server and specify a route it will use. For example it might look like this:If there are workarounds currently that allow to attach
AceBaseto an existing server, please let me know. I know that there is a.appthat lets you access the express app underneath, but in my use case the server is created before the AceBase is initialized, so I cannot use itshttpinstance... Therefore,.extendalso doesn't work for me...One more thing is that
new AceBaseServerautomatically starts listening which is not ideal. I think it would make sense that if you pass theserverparam, the saidserverwill control when it will start to listen (as well as its port).@appy-one commented on GitHub (Nov 23, 2022):
Thanks @Azarattum, I'll take a look at implementing this. Feel free to drop a PR if you'd like to contribute!
@Azarattum commented on GitHub (Nov 24, 2022):
@appy-one, take a look at https://github.com/appy-one/acebase-server/pull/55
@appy-one commented on GitHub (Dec 5, 2022):
Closed by merging #55, many thanks @Azarattum!