95 lines
1.5 KiB
Markdown
95 lines
1.5 KiB
Markdown
# 🚨 SOLUÇÃO RÁPIDA - App Não Abre
|
|
|
|
## ❌ Problema
|
|
|
|
Servidor mostra listagem de diretórios em vez do aplicativo.
|
|
|
|
## ✅ SOLUÇÃO
|
|
|
|
### Opção 1: Acessar URL Correta
|
|
|
|
**ERRADO**: `http://localhost:8000/`
|
|
**CORRETO**: `http://localhost:8000/index.html`
|
|
|
|
### Opção 2: Usar Novo Script Python
|
|
|
|
```bash
|
|
# Parar servidor atual (Ctrl+C)
|
|
# Executar novo script:
|
|
python server.py
|
|
```
|
|
|
|
O novo script:
|
|
- ✅ Redireciona `/` para `/index.html`
|
|
- ✅ Abre navegador automaticamente
|
|
- ✅ Abre na URL correta
|
|
|
|
### Opção 3: Usar http-server (Node.js)
|
|
|
|
```bash
|
|
npx http-server -p 8000 -o
|
|
```
|
|
|
|
Abre automaticamente no navegador.
|
|
|
|
### Opção 4: Usar Live Server (VS Code)
|
|
|
|
1. Instalar extensão "Live Server"
|
|
2. Clicar direito em `index.html`
|
|
3. Selecionar "Open with Live Server"
|
|
|
|
---
|
|
|
|
## 🎯 Teste Rápido
|
|
|
|
Após iniciar servidor, acesse:
|
|
|
|
**http://localhost:8000/index.html**
|
|
|
|
Deve abrir o aplicativo AÇO CALC PRO.
|
|
|
|
---
|
|
|
|
## 🐛 Se Ainda Não Funcionar
|
|
|
|
### Verificar Console do Navegador (F12):
|
|
|
|
1. Abrir DevTools (F12)
|
|
2. Ir para aba "Console"
|
|
3. Ver se há erros JavaScript
|
|
4. Copiar erros e me enviar
|
|
|
|
### Verificar Arquivos:
|
|
|
|
```bash
|
|
# Verificar se index.html existe
|
|
dir index.html
|
|
|
|
# Verificar se scripts existem
|
|
dir js\sections\perfis-*.js
|
|
```
|
|
|
|
---
|
|
|
|
## ✅ Solução Definitiva
|
|
|
|
Execute este comando:
|
|
|
|
```bash
|
|
python server.py
|
|
```
|
|
|
|
Aguarde mensagem:
|
|
```
|
|
🚀 Abrindo navegador automaticamente...
|
|
```
|
|
|
|
Navegador abre automaticamente em:
|
|
```
|
|
http://localhost:8000/index.html
|
|
```
|
|
|
|
---
|
|
|
|
**Teste agora! 🚀**
|