The latest mise installation can be found at the official mise website
For short version, you can run the following commands:
$ curl https://mise.run | sh
$ echo 'export PATH="$HOME/.mise/bin:$PATH"' >> ~/.bashrc; echo 'export PATH="$HOME/.mise/bin:$PATH"' >> ~/.zshrcRestart your terminal
- Restart Bash
$ exec bash- Restart Zsh
$ exec zshVerify the installation by running the following command:
$ mise version
2024.4.5 linux-arm64 (d60d850 2024-04-15)- Debian/Ubuntu
sudo apt install build-essential gdb lcov pkg-config \
libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \
libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \
lzma lzma-dev tk-dev uuid-dev zlib1g-dev libmariadb-devUp-to-date dependencies can be found at python developer's guide
- Clone the repository
$ git clone https://github.com/Teamdur/DeviceManager.git- Change directory to the project
$ cd DeviceManager- Initialize mise
$ mise trust
$ mise settings set experimental true
$ mise install- Run setup task
$ mise run setup-dev- Run the development server
$ mise run devThe following environment variables are required to run the app in production:
SECRET_KEY: A secret key for the appMARIADB_USER: The database userMARIADB_PASSWORD: The database passwordMARIADB_DATABASE: The database hostMARIADB_HOST: The database host addressMARIADB_PORT: The database port
For email sending, the following environment variables are required:
EMAIL_BACKENDshould be set todjango.core.mail.backends.smtp.EmailBackendEMAIL_HOST: The email hostEMAIL_PORT: The email portEMAIL_HOST_USER: The email host userEMAIL_HOST_PASSWORD: The email host passwordEMAIL_USE_SSL: Should be set toTrueif the email host uses SSLEMAIL_USE_TLS: Should be set toTrueif the email host uses TLS
For OIDC Authentication, the following environment variables should be provided however default values are provided:
GOOGLE_CLIENT_ID: The Google client IDGOOGLE_CLIENT_SECRET: The Google client secretGITHUB_CLIENT_ID: The Github client IDGITHUB_CLIENT_SECRET: The Github client secretAUTHENTIK_CLIENT_ID: The Authentik client IDAUTHENTIK_CLIENT_SECRET: The Authentik client secret