mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-15 14:32:50 +00:00
Support Deployment to Heroku (#280)
* Added heroku.yml * Added app.json * PORT as env var
This commit is contained in:
parent
567556711b
commit
350b796571
3 changed files with 48 additions and 2 deletions
|
@ -133,10 +133,11 @@ async fn main() {
|
|||
.get_matches();
|
||||
|
||||
let address = matches.value_of("address").unwrap_or("0.0.0.0");
|
||||
let port = matches.value_of("port").unwrap_or("8080");
|
||||
let port = std::env::var("PORT")
|
||||
.unwrap_or_else(|_| matches.value_of("port").unwrap_or("8080").to_string());
|
||||
let hsts = matches.value_of("hsts");
|
||||
|
||||
let listener = [address, ":", port].concat();
|
||||
let listener = [address, ":", &port].concat();
|
||||
|
||||
println!("Starting Libreddit...");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue