Skip to content

Nomad node pages #559

Sep 23, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

If you made the file executable (with chmod a+x index.mu for example), nomadnet will try to execute the file, and return the output of it to the user, instead of just sending the file contents. In case you do that, you will need to specify to the shell what kind of program the file actually is. If it is a python program, for example, you do this by adding something like:

#!/usr/bin/env python3

As the first line of the file. If this is a compiled executable, you obviously don't do that, and it should be able to just run as-is.

If you just want to send the file contents to the client, as a static page, just make the file non-executable.

This functionality is set up so you can make both simp…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by markqvist
Comment options

You must be logged in to vote
1 reply
@markqvist
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants