mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-26 10:49:56 +02:00
Update homarr-install.sh
Homarr is currently undergoing extensive development, and we do not recommend installing it from source at this point. As a result, Homarr has been taken down from this site. We kindly suggest using the Docker installation method as an alternative.
This commit is contained in:
parent
f39274a5c7
commit
a6318456be
@ -31,16 +31,44 @@ msg_ok "Set up Node.js Repository"
|
|||||||
msg_info "Installing Node.js"
|
msg_info "Installing Node.js"
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y nodejs
|
$STD apt-get install -y nodejs
|
||||||
|
$STD npm install next
|
||||||
|
$STD npm instal react
|
||||||
|
$STD npm instal react-dom
|
||||||
msg_ok "Installed Node.js"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
msg_info "Installing Yarn"
|
msg_info "Installing Yarn"
|
||||||
$STD npm install -g yarn
|
$STD npm install -g yarn
|
||||||
$STD npm install next react react-dom
|
$STD yarn global add prisma
|
||||||
msg_ok "Installed Yarn"
|
msg_ok "Installed Yarn"
|
||||||
|
|
||||||
msg_info "Installing Homarr (Patience)"
|
msg_info "Installing Homarr (Patience)"
|
||||||
git clone -q https://github.com/ajnart/homarr.git /opt/homarr
|
git clone -q https://github.com/ajnart/homarr.git /opt/homarr
|
||||||
cd /opt/homarr
|
cd /opt/homarr
|
||||||
|
cat <<EOF >/opt/homarr/.env
|
||||||
|
# Since the ".env" file is gitignored, you can use the ".env.example" file to
|
||||||
|
# build a new ".env" file when you clone the repo. Keep this file up-to-date
|
||||||
|
# when you add new variables to `.env`.
|
||||||
|
|
||||||
|
# This file will be committed to version control, so make sure not to have any
|
||||||
|
# secrets in it. If you are cloning this repo, create a copy of this file named
|
||||||
|
# ".env" and populate it with your secrets.
|
||||||
|
|
||||||
|
# When adding additional environment variables, the schema in "/src/env.js"
|
||||||
|
# should be updated accordingly.
|
||||||
|
|
||||||
|
# Prisma
|
||||||
|
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
|
||||||
|
DATABASE_URL="file:../database/db.sqlite"
|
||||||
|
|
||||||
|
# Next Auth
|
||||||
|
# You can generate a new secret on the command line with:
|
||||||
|
# openssl rand -base64 32
|
||||||
|
# https://next-auth.js.org/configuration/options#secret
|
||||||
|
# NEXTAUTH_SECRET=""
|
||||||
|
NEXTAUTH_URL="http://localhost:3000"
|
||||||
|
|
||||||
|
NEXTAUTH_SECRET="1234"
|
||||||
|
EOF
|
||||||
$STD yarn install
|
$STD yarn install
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
msg_ok "Installed Homarr"
|
msg_ok "Installed Homarr"
|
||||||
@ -54,6 +82,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=exec
|
Type=exec
|
||||||
WorkingDirectory=/opt/homarr
|
WorkingDirectory=/opt/homarr
|
||||||
|
EnvironmentFile=-/opt/homarr/.env
|
||||||
ExecStart=/usr/bin/yarn start
|
ExecStart=/usr/bin/yarn start
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user