54 lines
1.3 KiB
Markdown
54 lines
1.3 KiB
Markdown
|
|
# Deploy-instruktioner för quixzoom.com
|
||
|
|
|
||
|
|
## 1. Kopiera filer till webbserver
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Kopiera huvudsidan
|
||
|
|
sudo cp /home/bernt/.openclaw/workspace/quixzoom-index.html /var/www/quixzoom.com/index.html
|
||
|
|
|
||
|
|
# Kopiera locale-data.js
|
||
|
|
sudo cp /home/bernt/.openclaw/workspace/quixzoom-landing-fixed/locale-data.js /var/www/quixzoom.com/locale-data.js
|
||
|
|
|
||
|
|
# Kopiera notify-registration.php
|
||
|
|
sudo cp /home/bernt/.openclaw/workspace/quixzoom-shop/notify-registration.php /var/www/quixzoom.com/notify-registration.php
|
||
|
|
|
||
|
|
# Sätt rättigheter
|
||
|
|
sudo chown -R www-data:www-data /var/www/quixzoom.com
|
||
|
|
sudo chmod 644 /var/www/quixzoom.com/index.html
|
||
|
|
sudo chmod 644 /var/www/quixzoom.com/locale-data.js
|
||
|
|
sudo chmod 644 /var/www/quixzoom.com/notify-registration.php
|
||
|
|
```
|
||
|
|
|
||
|
|
## 2. Verifiera att PHP fungerar
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Testa PHP
|
||
|
|
php -v
|
||
|
|
|
||
|
|
# Om PHP inte är installerat:
|
||
|
|
sudo apt-get update
|
||
|
|
sudo apt-get install php-fpm
|
||
|
|
```
|
||
|
|
|
||
|
|
## 3. Konfigurera nginx för PHP
|
||
|
|
|
||
|
|
```nginx
|
||
|
|
location ~ \.php$ {
|
||
|
|
include snippets/fastcgi-php.conf;
|
||
|
|
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
## 4. Testa registrering
|
||
|
|
|
||
|
|
1. Gå till quixzoom.com
|
||
|
|
2. Ange telefonnummer i formuläret
|
||
|
|
3. Klicka "Register as a Zoomer"
|
||
|
|
4. Kontrollera att hello@quixzoom.com får e-post
|
||
|
|
|
||
|
|
## 5. Verifiera språk/region-väljare
|
||
|
|
|
||
|
|
1. Klicka på "EN" i header
|
||
|
|
2. Välj olika språk
|
||
|
|
3. Verifiera att du kommer till rätt sida (/sv-se/, /de-de/, etc.)
|