laravel-enso / enso

Laravel Vue SPA, Bulma themed. For demo login use `admin@laravel-enso.com` & `password` -
https://www.laravel-enso.com
MIT License
1.08k stars 277 forks source link

Installation problem the latest version #379

Closed ShekhSaifuddin007 closed 3 years ago

ShekhSaifuddin007 commented 3 years ago

Prerequisites

Description

After clone the repo git clone https://github.com/laravel-enso/enso.git --depth 1 then I run the composer install and then I got this error you can see the image below, how to resolve this..?

Actual behavior

enso

vmcvlad commented 3 years ago

Hi!

Are you sure you didn't run composer update? This shouldn't happen on composer install since artisan enso:upgrade:status only runs on update.

Nonetheless, you could do php artisan migrate and then everything should be fine.

ShekhSaifuddin007 commented 3 years ago

@vmcvlad No I didn't run composer update I just run composer install

also, I faced this error when I run yarn && yarn build into client folder

enso

vmcvlad commented 3 years ago

I can't reproduce this locally. Are you using windows? If so, we can't really offer much support since nobody uses windows in our team.

There have been windows related issues in the past, perhaps you might find something which helps you here:

https://github.com/laravel-enso/enso/issues/312

https://github.com/laravel-enso/enso/issues/352

ShekhSaifuddin007 commented 3 years ago

@vmcvlad Opps! My bad 😢after deleting these scripts now I'm able to install packages

"post-update-cmd": [
   "php artisan enso:localisation:merge",
   "php artisan telescope:publish",
   "php artisan horizon:publish",
   "php artisan enso:upgrade:status"
]

but now I'm facing a new issue see the pic below

enso2

everything is compile by run yarn serve and I set my url properly here is my env files

root env

APP_URL=http://localhost:8000

client env

API_URL=http://localhost:8080
robbykrlos commented 3 years ago

root env

APP_URL=http://localhost:8000

client env

API_URL=http://localhost:8080

Hi,

Make sure your .env file is properly configured:

APP_URL=http://localhost.backend:8081 - (apache/nginx / whatever deals with php)

EXT_API_URL=http://localhost.frontend:8082 (url to your yarn serve instance)

and also be sure to have the SANCTUM_STATEFUL_DOMAINS fully configured:

SANCTUM_STATEFUL_DOMAINS=localhost,127.0.0.1,127.0.0.1:8000,localhost:8080,::1,localhost.frontend:8082,localhost.backend:8081

I'm not saying this is a solution, I gest suggest some things that are critical for the app startup.