Set up Oxygen deployment workflow file #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Warning
If you've previously made customizations to your Oxygen workflow file, then this PR might overwrite them. Be sure to review all changes before merging.
Automatic deployments with Hydrogen and Oxygen
This pull request adds a workflow file that enables GitHub to automatically deploy your Hydrogen app each time you push or merge changes.
Pushes to your
main
branch deploy to your production environment. Pushes to any other branch deploy to your preview environment:main
You can also create your own custom environments (like "Staging" or "QA") and assign them to your own custom domains.
Developing locally 💻
After you’ve cloned your project, install the dependencies and run the local development server:
npm install && npm run dev
Link your local development environment to your Shopify store to render your product inventory data:
npx shopify hydrogen link --storefront "Petratools"
Linking your project automatically keeps your local environment variables in sync with Oxygen, allows you to query your store data, and lets you create deployments from the command line at any time. Check the complete list of Hydrogen CLI for a complete list of features.