create a folder in /var/www
cd /var/www
sudo chmod -R 777 .
mkdir slidecart
Getting projects from git repo
cd slidecart
git init
git remote add origin ORIGIN_LINK
git pull origin master
npm install
I normally saved my production env to this file. If not, then edit the file.
cp .env.example .env
To retrieve the values that you'll need to set as environment variables, run the following command in your local project.
npm run shopify app env show
paste those variable on env file. Go to web folder.
composer install
If you didn't create db please create one first by login mysql.
create database slidecart;
php artisan migrate
Seed if you have any
php artisan db:seed
Now go to deployemnt part
cd web/frontend
npm run build --api-key=REPLACE_ME
cd ..
composer build
if you got vite not found error
npm install vite