If you have a Strapi app you want to deploy but are uninterested in the multiple cloud or VPS options and want to use a shared hosting package instead, this article is for you.
Yes google meet it will be very helpful if you don’t mind. But, if you don’t have same time with me maybe can you record some video ? It will be very helpful to other people too when we share the video recording.
Basically, you are to define your environment after using nano .env then you run NODE_ENV=production run build. I will like to better understand your challenge hence the google meet. what’ 's your time right now? can you message me on discord? Ashimi#4138
By copying the whole project to the Public_html directory, don’t you allow access to the project credentials? Someone could navigate to yourwebsite.com/config/database.js and yourwebsite.com/.env. This would be a considerable security risk as this is where your credentials are located.
Hello, I got some error when running NODE_ENV=production run build.
/node_modules/.bin/strapi: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! herat-exchange-app-backend@0.1.0 build: `strapi build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the herat-exchange-app-backend@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /.npm/_logs/2022-12-29T12_07_32_897Z-debug.log
Can you help me understand why that error happens?
Proceed to Phpmyadmin on your Cpanel. Locate your database and import your local SQL file.
I’ve got my new database in PHPMyAdmin on the CPanel, but I’m unclear where I should find my local SQL file to import. Would this be saved within the Strapi project? I imagine its a schema I need to put in as a template, correct?
This is an older article, we should see if the author can updated. In the mean time I will go through the steps and see if I can figure out some of the issues folks are having.