crystal-loot / nox Goto Github PK
View Code? Open in Web Editor NEWProcfile-based process manager written in Crystal
License: MIT License
Procfile-based process manager written in Crystal
License: MIT License
# system_check: ignore_this
web: lucky watch
results in:
Unhandled exception: Nil assertion failed (NilAssertionError)
from /usr/share/crystal/src/nil.cr:108:5 in 'not_nil!'
from /usr/share/crystal/src/string.cr:4000:27 in 'parse'
from /home/jeremy/Development/lucky_org/lucky_cli/lib/nox/src/nox/procfile.cr:5:5 in 'parse_file'
from /home/jeremy/Development/lucky_org/lucky_cli/lib/nox/src/nox.cr:11:16 in 'run'
from /home/jeremy/Development/lucky_org/lucky_cli/src/dev.cr:5:5 in 'call'
from /home/jeremy/Development/lucky_org/lucky_cli/src/lucky.cr:29:3 in '__crystal_main'
from /usr/share/crystal/src/crystal/main.cr:115:5 in 'main_user_code'
from /usr/share/crystal/src/crystal/main.cr:101:7 in 'main'
from /usr/share/crystal/src/crystal/main.cr:127:3 in 'main'
from /lib/x86_64-linux-gnu/libc.so.6 in '??'
from /lib/x86_64-linux-gnu/libc.so.6 in '__libc_start_main'
from lucky in '_start'
from ???
Realized after doing some digging in the code that Nox was its own shard, and not embedded in lucky_cli.
@matthewmcgarvey LMK if there's anything else I can do to help debug this.
No clue if this is a good idea or not, but I just ran in to an issue where I ran lucky dev
, and then got all my web output and started browsing my app. I was trying to figure out why I was missing some data so I scroll back up my log to find out that my mosquito process never compiled. I had a syntax error in my worker (why the web still compiled, I have no clue...), but since the worker process never actually booted, then it seems like the web shouldn't have either. 🤷♂️
I hit ^C
on my running app, and got this error:
web |
web | ▸ Sent 500 Internal Server Error (21.81ms) (a2b74804-eb89-4e2a-827e-321d1457725c)
^Csystem_check | Attempting to interrupt...
kill: No such process (RuntimeError)
from /usr/share/crystal/src/crystal/system/unix/process.cr:58:5 in 'signal'
from /usr/share/crystal/src/process.cr:293:5 in 'signal'
from /home/jeremy/Development/lucky_org/lucky_cli/lib/nox/src/nox/process.cr:25:7 in 'interrupt'
from /home/jeremy/Development/lucky_org/lucky_cli/lib/nox/src/nox/runner.cr:23:22 in 'interrupt_or_kill'
from /home/jeremy/Development/lucky_org/lucky_cli/lib/nox/src/nox.cr:13:24 in '->'
from /usr/share/crystal/src/primitives.cr:266:3 in '->'
from /usr/share/crystal/src/primitives.cr:266:3 in 'run'
from /usr/share/crystal/src/fiber.cr:92:34 in '->'
from ???
FATAL: uncaught exception while processing handler for INT, exiting
Here's what Nox looks like when I boot my app
Here's what Overmind looks like
There's a few differences here:
yarn run v1.22.17
line under "web" as where Overmind just has it on its own line. I'm not sure which is better...[Browsersync]
in "web" on Nox isn't colorized, but in Overmind it is. Notice in the assets it is thoughA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.