You've already forked Atomcms-edit
Move .env.install to docs/INSTALL.md as Markdown
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@
|
||||
- Complete README rewrite with badges, tables, quick start
|
||||
- All Dutch comments translated to English
|
||||
- XAMPP support removed (security warning added)
|
||||
- `.env.example` → `.env.install` with step-by-step guide
|
||||
- `.env.example` → `docs/INSTALL.md` with step-by-step guide
|
||||
- `.env.standard` → `.env.example.linux` + `.env.example.windows`
|
||||
- Nitro V3 update moved from web UI to CLI (Linux-only)
|
||||
- Nitro V3 settings moved from database to `.env` file
|
||||
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
# AtomCMS — Installation Guide
|
||||
|
||||
Follow these steps to configure your environment after cloning the repository.
|
||||
|
||||
---
|
||||
|
||||
## Step 1 — Choose your platform
|
||||
|
||||
```bash
|
||||
# Linux
|
||||
cp .env.example.linux .env
|
||||
|
||||
# Windows
|
||||
cp .env.example.windows .env
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 2 — Generate app key
|
||||
|
||||
```bash
|
||||
php artisan key:generate
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 3 — Edit database settings in `.env`
|
||||
|
||||
```
|
||||
DB_DATABASE=habbo
|
||||
DB_USERNAME=cms # Linux: create a dedicated DB user
|
||||
DB_USERNAME=root # Windows: default MySQL user
|
||||
DB_PASSWORD=your_secure_password
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 4 — Set your domain
|
||||
|
||||
```
|
||||
APP_URL=https://yourhotel.nl
|
||||
SESSION_DOMAIN=.yourhotel.nl
|
||||
SANCTUM_STATEFUL_DOMAINS=yourhotel.nl,www.yourhotel.nl
|
||||
CORS_ALLOWED_ORIGINS=https://yourhotel.nl,https://www.yourhotel.nl
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 5 — Set to production
|
||||
|
||||
```
|
||||
APP_ENV=production
|
||||
APP_DEBUG=false
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 6 — (Linux only) Configure Redis
|
||||
|
||||
```bash
|
||||
sudo apt install redis-server
|
||||
sudo systemctl enable --now redis-server
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 7 — Run migrations
|
||||
|
||||
```bash
|
||||
php artisan migrate --seed
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 8 — Build frontend
|
||||
|
||||
```bash
|
||||
yarn install && yarn build:all
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 9 — Set permissions (Linux)
|
||||
|
||||
```bash
|
||||
sudo chown -R www-data:www-data storage bootstrap/cache public/build
|
||||
sudo chmod -R 775 storage bootstrap/cache
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 10 — Restart PHP-FPM (Linux)
|
||||
|
||||
```bash
|
||||
sudo systemctl restart php8.5-fpm
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Your hotel is now ready at `https://yourhotel.nl`.
|
||||
Reference in New Issue
Block a user