Nix NodeJS | 209 Members | |
| 59 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Nov 2023 | ||
In reply to @peter-lustig:matrix.orgYou might want to look into the journal (journalctl -xeu ) to inspect your app logs. | 08:18:18 | |
| * In reply to @peter-lustig:matrix.org the systemd service If your app öogs to stderr/stdout, you might want to look into the journal (journalctl -xeu ) to inspect your app logs | 08:19:24 | |
| * In reply to peter-lustig the systemd service If your app logs to stderr/stdout, you might want to look into the journal (journalctl -xeu ) to inspect your app logs | 08:19:51 | |
In reply to @c0ba1t:matrix.orgYes, I am aware of that. But journalctl for the service only gives me `The unit has entered the 'failed' state with result 'exit-code' | 13:10:21 | |
but i execute the command PORT=5173 node . and if I test that locally everything just works | 13:11:59 | |
| Here is my current systemd service:
| 13:17:00 | |
| Okay, have you tried going to the workingdirectory and executing node there? | 13:19:10 | |
POST=5173 is not a command | 13:19:20 | |
If you are trying to set an environment variable, set Environment = "PORT=5173 | 13:19:31 | |
* If you are trying to set an environment variable, set Environment = "PORT=5173" | 13:19:33 | |
* PORT=5173 is not a command | 13:19:51 | |
| systemd doesn't run this stuff through bash | 13:20:00 | |
In reply to @lily:lily.flowers it is just a command line from the docs: PORT, HOST and SOCKET_PATHpermalink HOST=127.0.0.1 PORT=4000 node build SOCKET_PATH=/tmp/socket node build | 13:20:16 | |
In reply to @lily:lily.flowers* it is just a command line argument from the docs: PORT, HOST and SOCKET_PATHpermalink HOST=127.0.0.1 PORT=4000 node build SOCKET_PATH=/tmp/socket node build | 13:20:21 | |
| It's a bash-ism, not a command line argument | 13:20:41 | |
| okay, I will try the environment | 13:20:51 | |
| If you are intending it to be an environment variable like bash does, you need to set it as an environment variable | 13:20:55 | |
| (apologies if that sounded accusative. i only got up a bit ago and i guess am typing a bit short this morning) | 13:21:55 | |
| ok the systemd service still fails | 13:22:12 | |
| so seems like that was not the issue | 13:22:16 | |
| it was 100% still an issue | 13:22:28 | |
| even if there are other ones | 13:22:33 | |
| It may be helpful if you share the logs | 13:22:35 | |
| Or some kind of MRE | 13:23:16 | |
| 13:23:47 | |
| does not help much | 13:23:50 | |
| it is not specific | 13:23:55 | |
In reply to @peter-lustig:matrix.org(also you probably want that to be wants = [ "network-online.target"] instead of after, since the former sets up an explicitly dependency but after only does ordering. it works for now, but we're going to be making multi-user.target no longer depend on network-online.target at some point) | 13:24:21 | |
In reply to @lily:lily.flowersMaybe now? | 13:25:35 | |
In reply to @szucsitg:matrix.orgyeah sure! apologies for forgetting yesterday (was a busy day) | 13:25:52 | |