Skip to content

Commit

Permalink
feat: add version show
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhelvetican committed Jun 11, 2024
1 parent 92dffd2 commit d3bfdf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terraps/src/game/shop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ pub async fn pay_get_unconfirmed_order_id_list() -> JSON {
}

// FOR LATER USE
pub async fn _template_shop() {}
pub async fn __template_shop() {}
3 changes: 3 additions & 0 deletions terraps/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ mod utils;
use anyhow::Result;

use routes::app;
use tracing_log::log::info;
use utils::{
server::{get_server_address, Server},
upgrade,
};

#[tokio::main]
async fn main() -> Result<()> {
let version = env!("CARGO_PKG_VERSION");
upgrade().await?;
info!("TerraPS v{} is starting...", version);
let (server_address, server_port) = get_server_address();
let server = Server::new(server_address, server_port);
server.serve(app()).await
Expand Down

0 comments on commit d3bfdf7

Please sign in to comment.