TastyIgniter icon indicating copy to clipboard operation
TastyIgniter copied to clipboard

The app doesn't work

Open DamianoP opened this issue 3 years ago • 4 comments

After executing the commands:

mkdir tastyigniter && cd tastyigniter
curl -LO https://github.com/ThisIsQasim/TastyIgniter/raw/master/docker-compose.yml
docker compose up -d
docker compose exec app php artisan igniter:passwd admin

I obtain the following error:

In Connection.php line 712:
                                                                                                                                                                    
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tastyigniter.ti_users' doesn't exist (SQL: select * from `ti_users` where `username` = admin limit 1)  
                                                                                                                                                                    

In Exception.php line 18:
                                                                                                   
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tastyigniter.ti_users' doesn't exist  
                                                                                                   

In PDOConnection.php line 82:
                                                                                                   
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tastyigniter.ti_users' doesn't exist  

DamianoP avatar Aug 02 '22 03:08 DamianoP

For some reason the setup command isn’t being executed run the following before setting the password docker compose exec app php artisan igniter:install --no-interaction

ThisIsQasim avatar Aug 04 '22 18:08 ThisIsQasim

I was having the same issue and added the new command. I can now to go localhost:8001 and it shows the getting started page however there is an issue. There are three links, two of them tasty.example.com and the third goes to tastyigniter.com.

Going to localhost:8001/admin redirects to tasty.example.com/admin/login. Going to localhost:8001/admin/login takes me to the login page but once I enter credentials and click on login, it redirects to tasty.example.com.admin/login

How do I avoid the redirect?

hamoudydev avatar Aug 05 '22 03:08 hamoudydev

I was having the same issue and added the new command. I can now to go localhost:8001 and it shows the getting started page however there is an issue. There are three links, two of them tasty.example.com and the third goes to tastyigniter.com.

Going to localhost:8001/admin redirects to tasty.example.com/admin/login. Going to localhost:8001/admin/login takes me to the login page but once I enter credentials and click on login, it redirects to tasty.example.com.admin/login

How do I avoid the redirect?

Try changing the APP_URL env variable. I just ran into this issue and changed the value in portainer - this seemed to fix the redirect issue. I would assume just leaving this variable blank in the docker-compose.yml file would have the same effect. Though in both cases you will need to re-deploy the container.

services:
  app:
    image: thisisqasim/tastyigniter:3.4.0
    hostname: tasty
    ports:
      - 8001:80
    environment:
      - APP_URL=<LEAVE THIS BLANK>
      - DB_CONNECTION=mysql
      - DB_HOST=db
      - DB_DATABASE=tastyigniter
      - DB_USERNAME=tastyigniter
      - DB_PASSWORD=somepassword
      - CACHE_DRIVER=redis
      - REDIS_HOST=redis
    restart: always  
  db:
    image: mariadb:10.7
    volumes:
      - ./db:/var/lib/mysql
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=yes
      - MYSQL_DATABASE=tastyigniter
      - MYSQL_USER=tastyigniter
      - MYSQL_PASSWORD=somepassword
    restart: always
  redis:
    image: redis:6
    command: redis-server --maxmemory 256mb --maxmemory-policy allkeys-lru
    restart: always```

5auru5 avatar Oct 31 '22 03:10 5auru5

I have the same problem:

In Connection.php line 712:
                                                                                                                             
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tastyigniter.ti_users' doesn't exist (SQL: select * from 'ti_u  
  sers' where 'username' = admin limit 1)                                                                                    
                                                                                                                             

In Exception.php line 18:
                                                                                                   
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tastyigniter.ti_users' doesn't exist  
                                                                                                   

In PDOConnection.php line 82:
                                                                                                   
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tastyigniter.ti_users' doesn't exist 

I solved the problem with the next instruction.

docker compose exec app php artisan igniter:install --no-interaction

Thanks @ThisIsQasim

GabrielCalleDev avatar Nov 04 '22 17:11 GabrielCalleDev