fix: update the command for SVR.JS installation
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m10s

This commit is contained in:
Dorian Niemiec 2024-12-02 19:02:26 +01:00
parent 36f5fd134e
commit 158586f453
2 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ const happyMonkey = Happy_Monkey({
const Hero = () => { const Hero = () => {
const [isCopied, setIsCopied] = useState(false); const [isCopied, setIsCopied] = useState(false);
const [command, setCommand] = useState( const [command, setCommand] = useState(
"curl -fsSL https://downloads.svrjs.org/installer/svr.js.installer.linux.20240509.sh > /tmp/installer.sh && sudo bash /tmp/installer.sh" 'sudo bash -c "$(curl -fsSL https://downloads.svrjs.org/installer/svr.js.installer.linux.20240509.sh)"'
); );
const [selectedButton, setSelectedButton] = useState<"linux" | "docker">( const [selectedButton, setSelectedButton] = useState<"linux" | "docker">(
"linux" "linux"
@ -27,7 +27,7 @@ const Hero = () => {
const commands = { const commands = {
linux: linux:
"curl -fsSL https://downloads.svrjs.org/installer/svr.js.installer.linux.20240509.sh > /tmp/installer.sh && sudo bash /tmp/installer.sh", 'sudo bash -c "$(curl -fsSL https://downloads.svrjs.org/installer/svr.js.installer.linux.20240509.sh)"',
docker: docker:
"docker pull svrjs/svrjs && docker run --name mysvrjs -d -p 80:80 --restart=always svrjs/svrjs" "docker pull svrjs/svrjs && docker run --name mysvrjs -d -p 80:80 --restart=always svrjs/svrjs"
}; };
@ -91,7 +91,7 @@ const Hero = () => {
) : ( ) : (
<Check className="w-4 h-4 mr-2" /> <Check className="w-4 h-4 mr-2" />
)} )}
{command.slice(0, 39)}... {command.slice(0, 37)}...
</Button> </Button>
<p className="hidden lg:block">|</p> <p className="hidden lg:block">|</p>
<p className="block lg:hidden">or</p> <p className="block lg:hidden">or</p>

View file

@ -6,7 +6,7 @@ title: Installation
## Using SVR.JS installer (installer packages made in April 5, 2024 and later; GNU/Linux only) ## Using SVR.JS installer (installer packages made in April 5, 2024 and later; GNU/Linux only)
The command for SVR.JS installation is available in [the SVR.JS home page](https://svrjs.org). First off, switch to _GNU/Linux_ tab, then copy the command below the tab into the terminal. The command looks something like this: `curl -fsSL https://downloads.svrjs.org/installer/svr.js.installer.linux.20240509.sh > /tmp/installer.sh && sudo bash /tmp/installer.sh`. After starting the installer, you will be prompted to select the type of SVR.JS installation. After selecting the type, SVR.JS installer will install Node.JS, SVR.JS and create SVR.JS service. During installation, you may be prompted for the installation of dependencies. Once the installation is done, the server is started at _http://localhost_. The command for SVR.JS installation is available in [the SVR.JS home page](https://svrjs.org). First off, switch to _GNU/Linux_ tab, then copy the command below the tab into the terminal. The command looks something like this: `sudo bash -c "$(curl -fsSL https://downloads.svrjs.org/installer/svr.js.installer.linux.20240509.sh)"`. After starting the installer, you will be prompted to select the type of SVR.JS installation. After selecting the type, SVR.JS installer will install Node.JS, SVR.JS and create SVR.JS service. During installation, you may be prompted for the installation of dependencies. Once the installation is done, the server is started at _http://localhost_.
File structure will look like this: File structure will look like this: