Skip to content

Project: Restaurant Page: change deployment commands #29145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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