Skip to content

Instantly share code, notes, and snippets.

@moshiurse
Created September 18, 2023 09:54
Show Gist options
  • Save moshiurse/92301748911e674bdf622420b31d1950 to your computer and use it in GitHub Desktop.
Save moshiurse/92301748911e674bdf622420b31d1950 to your computer and use it in GitHub Desktop.
Shopify App Dedployment Process (Laravel, react)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment