tomaka / rouille

Web framework in Rust
Apache License 2.0
1.09k stars 105 forks source link

How to deploy application? #280

Open szabgab opened 6 months ago

szabgab commented 6 months ago

Now that I have my brand new web application printing "Hello World!", I'd like to deploy it.

I could not find any instruction how can I do it or what is the recommended way to do it.

It would be nice to add such information to the README or to the documentation.

puetzp commented 6 months ago

I do not think recommendations on application deployment are within the scope of this project. Your application code (that depends on rouille among others) produces a binary when compiled. At this point it does not matter if you use rouille or axum or any other web framework in your code. You just run it like any other binary.

That being said: Maybe I totally misunderstand your question?

szabgab commented 6 months ago

I am sure there are many ways to deploy any web application. My point is that it can be useful for the project to show one or more such ways. Maybe as part of a tutorial.

For example would you deploy it stand alone as a web server or would you put it behind an nginx reverse proxy. Would you handle static file (e.g. images) by the application or by nginx, if there is one? Once I wrote a blog post on how to convert any executable to a service I think something along those lines would help to get people started.