<FromGitter>
<eliasjpr> @andrewc910 you can have a process monitor in case the server stops. Amber will try its best to reboot event after a crash
<FromGitter>
<damianham> @andrewc910 I install a service in /lib/systemd/system and use systemctl to start/stop/restart etc.
_whitelogger has joined #amber
<FromGitter>
<Blacksmoke16> if you are using docker swarm it has some stuff to handle that for you
<FromGitter>
<Blacksmoke16> (even tho its kinda dieing it still useful for small stuff imo)
<FromGitter>
<andrewc910> Never actually set up systemd. Wasn't too bad. This is just to demo a shard i am making so i just used iptables & systemd. Made sure everything persists & boots after reboots. Anything i should be aware of using either of these? I typically don't do manual deploys like this
<FromGitter>
<andrewc910> http://3.23.28.58/ ⏎ No handwritten JS. OOP View components like lucky, websockets & html over the wire :) I am quite happy about this.
<FromGitter>
<eliasjpr> Nice!
<FromGitter>
<eliasjpr> @andrewc910 do you have the repo for this? I would like to explore the code
<FromGitter>
<andrewc910> I am personally not a huge fan of javascript frameworks. I will use them for work without complaints but i typically don't work in js for personal projects. This was to reduce the need for some JS :D
<FromGitter>
<eliasjpr> But this is incredible! I really like this work. Can wait to see more of it
<FromGitter>
<eliasjpr> I saw you had to write a few javascript files
<FromGitter>
<andrewc910> Thanks! I want to get timers & model broadcasts working next.
<FromGitter>
<andrewc910> Yeah, the project requires you to install my node package. It reads the html, adds event listeners to any portions of the page that have the data attributes, then handles the websocket connections & dom-diffing.
<FromGitter>
<eliasjpr> @andrewc910 I was wondering if is possible to make the Motion::Base a module instead of a class?
<FromGitter>
<damianham> @andrewc910 I really like this work. I use React a lot for SPA frontends but I can see this as an attractive alternative. A couple of my recipes have SPA<-->server model synchronization over websockets. You might find some useful code there.
<FromGitter>
<eliasjpr> Also I see a small limitation listed for Motion
<FromGitter>
<eliasjpr> > MotionComponents are limited to a single top-level DOM element ⏎ I think I might be able to help to remove this limitation
<FromGitter>
<andrewc910> @eliasjpr It totally can be. Lucky has it as a module, then in the lucky project, it mixes into a `base::component` and you inherit from that. What would the benefit be? In regards the the limitation, you can have the top level be a component but it can't actually have motions. This is because the html transformer needs to be able to find 1 exact child. If we have multiple children in a component, the html