Skip to content

Commit

Permalink
Update project_restaurant_page.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudmerghani authored Dec 1, 2024
1 parent 9bcde5e commit 29fc2f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ You don't need to know exactly what all the commands do - as long as you follow

1. Make a new branch to deploy from by running `git branch gh-pages`. You only need to do this the first time you deploy. The rest of the steps should be done every time you deploy or redeploy your project.
1. Make sure you have all your work committed. You can use `git status` to see if there's anything that needs committing.
1. Run `git checkout gh-pages && git merge main --no-edit` to change branch and sync your changes from `main` so that you're ready to deploy.
1. Run `git checkout gh-pages && git reset --hard main` to change branch and sync your changes from `main` so that you're ready to deploy.
1. Now let's bundle our application into `dist` with your build command. For now, that's `npx webpack`.
1. Now there are a few more commands. Run each of these in order:

```bash
git add dist -f && git commit -m "Deployment commit"
git subtree push --prefix dist origin gh-pages
git push origin `git subtree split --prefix dist gh-pages`:gh-pages --force
git checkout main
```

Expand Down

0 comments on commit 29fc2f5

Please sign in to comment.