BRACKETS-by-TRIAD / craftable-pro-docs

Craftable PRO is an admin panel for your Laravel project build with InertiaJS, Vue and TailwindCSS.
https://docs.craftable.pro
MIT License
7 stars 1 forks source link

Issues when up to production #100

Closed KosorlYoeng closed 1 month ago

KosorlYoeng commented 1 month ago

issues "Why I up the project to production it display blank white screen when i access to /admin/login"

strstensky commented 1 month ago

Did you run npm run craftable-pro:build after depolyment?

KosorlYoeng commented 1 month ago

Yes, I run it after deployment

strstensky commented 1 month ago

And it ran without any problems? A white page usually indicates that the frontend hasn’t been compiled. Do you see any errors in the console?

KosorlYoeng commented 1 month ago

I don't see all errors in the console

KosorlYoeng commented 1 month ago

https://uniclubzone.paragoniu.app/admin/login

Here is my website, You can check it

strstensky commented 1 month ago

I checked your website and I saw the PHP error unrelated to Craftable PRO:

file_put_contents(/var/www/html/club/storage/framework/views/99eb1ac00707a17563604ccbe43bbb1a.php): Failed to open stream: Permission denied

It looks like you need to change permissions to the storage folder, see this StackOverflow thread: https://stackoverflow.com/a/54070254/23195683 .

KosorlYoeng commented 1 month ago

I fix already, U can check it again ?

strstensky commented 1 month ago

Please try to run npm run craftable-pro:build on your server and paste the output here so that I can check for any errors.

KosorlYoeng commented 1 month ago

I try a long time but it still blank white screen

strstensky commented 1 month ago

I understand. Could you please paste your command-line interface output here after running the command? You can see the example of the output in our tutorial video at the 3:50 timestamp: https://youtu.be/IU3zBf_ioyk?si=HuHj7hAFsEwhBYh2&t=230.

KosorlYoeng commented 1 month ago

can you clarify this?

strstensky commented 1 month ago

After you run the command npm run craftable-pro:build at the server, you should see some output in your command line interface, something like this: image

Can you copy & paste the output here or at least send a screenshot?

KosorlYoeng commented 1 month ago

screenshot

strstensky commented 1 month ago

That seems fine. Would you mind sharing repository access with me so I can check the code?

KosorlYoeng commented 1 month ago

Here https://github.com/vividnestor/uniclubzone.git

strstensky commented 1 month ago

I checked your repository, and in the file resources/views/craftable-pro.blade.php, you are missing this line after @routes:

@vite(['resources/js/craftable-pro/index.ts', 'resources/css/craftable-pro.css'])

I also updated the packages using npm update. After that, I was able to see the admin panel correctly.

KosorlYoeng commented 1 month ago

It working thank you so much.