And use it like we do during iex -S mix run --no-start
command for that local project, while using live book.
I am running live book locally, How to achieve this?
You can just give it a short name and connect to it
iex –sname derpycoder –cookie wubalubadubdub -S mix run —no-start
See how to connect a LiveBook to a node:
Sure, it’s simple.
Just start your application by giving a name & cookie:
elixir --sname derpycoder --cookie wubalubadubdub -S mix phx.server
Open up a LiveBook
Click on Runtime Icon on Sidebar:
[Runtime Configure]
Pass in the app name & cookie
[Pass in Name & Cookie]
Connection Success
[Runtime Connected]
Now you can access anything, that you can access via iex!!
[Enjoi]
Read up on how you can create Business Intelligence LiveBooks, so you can query your runtime from t…
P.S. I haven’t used —no-start before. Hope the approach for connecting to it is same as a running node!
2 Likes