Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The app doesn't work #7

Open
DamianoP opened this issue Aug 2, 2022 · 4 comments
Open

The app doesn't work #7

DamianoP opened this issue Aug 2, 2022 · 4 comments

Comments

@DamianoP
Copy link

DamianoP commented Aug 2, 2022

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  
@ThisIsQasim
Copy link
Owner

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

@dearbornio
Copy link

dearbornio commented Aug 5, 2022

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?

@5auru5
Copy link

5auru5 commented Oct 31, 2022

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```

@GabrielCalleDev
Copy link

GabrielCalleDev commented Nov 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants