hi, I am new on envato/metronic, I have found the possibility to integrate with laravel on my plesk platform
I have laravel installed sucessfully, but I am lost how to adapt these instructions to my enviroment Getting started with your next project in just 5 minutes by Keenthemes
for example cd starterkit is not posssible so I move all folder to httpdocs/public but not sure how to follow
Hello,
Have you executed the command "composer install"? If you're encountering the same issues, you might also consider trying "composer update."
Thank you.
these are the errors of the main page:login:293
GET https://ordenapc.com/vendor/livewire/livewire.js?id=90730a3… net::ERR_ABORTED 404
DevTools failed to load source map: Could not load content for https://ordenapc.com/public/assets/plugins/global/sourcemaps/tiny-slider.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
login:299 Uncaught ReferenceError: Livewire is not defined
at login:299:27
(anonymous)@login:299
DevTools failed to load source map: Could not load content for https://ordenapc.com/public/assets/plugins/global/axios.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
plugins.bundle.js:57836
POST https://ordenapc.com/public/login 422
dispatchXhrRequest@plugins.bundle.js:57836
xhr@plugins.bundle.js:57656
dispatchRequest@plugins.bundle.js:57918
request@plugins.bundle.js:58235
httpMethod@plugins.bundle.js:58271
wrap@plugins.bundle.js:55687
(anonymous)@general.js:126
Promise.then (async)
(anonymous)@general.js:117
Hi Faizal
I apreciate very much on this stage I am stuck
you can check web demo http://ordenapc.com
database is with 0 users(so no populated any)
database works because "php artisan migrate:fresh --seed" generated 4 tables
let me know what is missing. I undersatand last commands " php artisan serve " id not neccessary on my plesk enviroment, at least my demo web works without them
Hi,
I kindly suggest referring to the comprehensive step-by-step guide available in our documentation for detailed instructions:
https://preview.keenthemes.com/laravel/metronic/docs/getting-started
Currently, there's no need to configure email settings. To begin, focus on setting up the database and executing database migration. Once completed, the default user and admin credentials will be automatically populated in the database as follows:
Email: demo@demo.com
Password: demo
If you have any further queries or require assistance, please don't hesitate to reach out.
Hi I got working the demo
changed in env file
APP_URL=http://localhost
do I have to change email server to get ilogin
is there any default login /password
Faizal
I have got compiling without errors
after execute "yarn" from shell
npm run dev compiled without errors
let me know what is next to see this metronic demo on my domain
Hi I have got some advances,
yes I have console access to my domain holder
just to inform path is where metronic is installed is /var/www/vhost/domain.com/httpdocs/public
1- copied metronic zip demo on the"/httpdocs/public" and extracted
2-run npm install on "/httpdocs/public", seems to work fine
3-run compose install on "/httpdocs/public", worked also (but not in /httpdocs)
4-run "npm run dev" gives these errors
5- also main page give this error Execution /opt/plesk/php/8.1/bin/php has failed with exit code 1, stdout: In app.php line 158: Call to undefined method Illuminate\Support\ServiceProvider::defaultProvide rs() , stderr:
# npm run dev
Process exited with non-zero exit code '1'
> dev
> vite
VITE v4.4.9 ready in 502 ms
â Local: http://localhost:5173/
â Network: use --host to expose
LARAVEL v9.52.15 plugin v0.7.8
â APP_URL: http://localhost
node:internal/errors:478
ErrorCaptureStackTrace(err);
^
Error: ENOSPC: System limit for number of file watchers reached, watch '/var/www/vhosts/ordenapc.com/httpdocs/vendor/vendor/laravel/serializable-closure/src/UnsignedSerializableClosure.php'
at FSWatcher. (node:internal/fs/watchers:244:19)
at Object.watch (node:fs:2296:34)
at createFsWatchInstance (file:///var/www/vhosts/ordenapc.com/httpdocs/node_modules/vite/dist/node/chunks/dep-df561101.js:52028:17)
at setFsWatchListener (file:///var/www/vhosts/ordenapc.com/httpdocs/node_modules/vite/dist/node/chunks/dep-df561101.js:52075:15)
at NodeFsHandler._watchWithNodeFs (file:///var/www/vhosts/ordenapc.com/httpdocs/node_modules/vite/dist/node/chunks/dep-df561101.js:52230:14)
at NodeFsHandler._handleFile (file:///var/www/vhosts/ordenapc.com/httpdocs/node_modules/vite/dist/node/chunks/dep-df561101.js:52294:23)
at NodeFsHandler._addToNodeFs (file:///var/www/vhosts/ordenapc.com/httpdocs/node_modules/vite/dist/node/chunks/dep-df561101.js:52536:21)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (file:///var/www/vhosts/ordenapc.com/httpdocs/node_modules/vite/dist/node/chunks/dep-df561101.js:53727:10)
at NodeFsHandler._addToNodeFs (file:///var/www/vhosts/ordenapc.com/httpdocs/node_modules/vite/dist/node/chunks/dep-df561101.js:52544:18) {
errno: -28,
syscall: 'watch',
code: 'ENOSPC',
path: '/var/www/vhosts/ordenapc.com/httpdocs/vendor/vendor/laravel/serializable-closure/src/UnsignedSerializableClosure.php',
filename: '/var/www/vhosts/ordenapc.com/httpdocs/vendor/vendor/laravel/serializable-closure/src/UnsignedSerializableClosure.php'
Hi,
In your Plesk environment, ensure you have access to the server directory where your project is hosted. You should be able to run commands on the server. Have you already installed the composer dependencies using the "composer install" command? If you encounter any issues, you can try removing the "composer.lock" file and then running "composer install" again.
Additionally, for your frontend assets, have you executed the "npm install" command to install the required Node.js packages? Running "npm run dev" compiles these assets. Check these steps to resolve the errors you're encountering. If you need further assistance, please provide more details about the specific errors you're facing.
Thanks
Hi Faizal thanks by reply
we are not sure how control the folder where I execute comands on plesk enviroment , with different execution sections for each language(i cant attach photos here but sure you can see enviroment on this link https://www.plesk.com/blog/product-technology/laravel-application-hosting-in-plesk/
all has been working until npm run dev with lots of errors, you can see results on public web http:// ordenapc.com, may be yoy can help us about what is missing
Hi,
It's great that you're exploring Metronic for your Laravel project on your Plesk platform. To adapt the instructions for your environment, you're on the right track by moving the folders to httpdocs/public.
Here are the steps you can follow:
1. Folder Structure: Move the contents of the Metronic package to the httpdocs/public directory. This ensures that your assets are accessible from the web.
2. Installation Dependencies: Before you proceed, make sure you have Node.js, npm, and Composer installed on your server. These are essential for building assets and managing Laravel dependencies.
3. npm Install: Using your terminal, navigate to the httpdocs/public directory and run npm install. This command will install the necessary Node.js packages for your project.
4. Composer Install: Move back to your Laravel root directory (one level above httpdocs) and run composer install to install the Laravel dependencies.
5. Build Assets: In the httpdocs/public directory, run npm run dev to compile and build your assets. This step generates the necessary CSS and JavaScript files for your application.
6. Environment Configuration: Ensure your .env file in the Laravel root directory is properly configured for your database and other settings.
7. Running the Project: Since you've moved the contents to httpdocs/public, your Laravel application should now be accessible from your domain (e.g., http://yourdomain.com). Ensure your server is properly configured to serve the application from the public directory.
8. Create a Symbolic Link: To align with Laravel's starting point located at laravel/public/index.php, you can establish a symbolic link within the httpdocs/public directory that directs to the laravel/public folder. This link ensures seamless accessibility to your Laravel application from the intended web address.
Remember, these steps are a general guide, and your environment might have specific considerations. If you encounter any issues or need further assistance, don't hesitate to reach out to us.