Skip to content
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

Set up Oxygen deployment workflow file #2255

Closed
wants to merge 1 commit into from

Conversation

shopify[bot]
Copy link
Contributor

@shopify shopify bot commented Jun 17, 2024

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:

Git branch Environment URL
main Production https://full-page-cache-a892345204bdcc7d9243.o2.myshopify.dev
(All other branches) Preview {hash}.myshopify.dev

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 "full-page-cache"

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.

Copy link
Contributor Author

shopify bot commented Jun 17, 2024

Oxygen deployed a preview of your shopify-setup-oxygen-workflow-76j2 branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
metaobjects ✅ Successful (Logs) Preview deployment Inspect deployment June 17, 2024 5:57 PM
classic-remix ✅ Successful (Logs) Preview deployment Inspect deployment June 17, 2024 5:57 PM
custom-cart-method ✅ Successful (Logs) Preview deployment Inspect deployment June 17, 2024 5:57 PM
third-party-queries-caching ✅ Successful (Logs) Preview deployment Inspect deployment June 17, 2024 5:57 PM
optimistic-cart-ui ✅ Successful (Logs) Preview deployment Inspect deployment June 17, 2024 5:57 PM
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment June 17, 2024 5:57 PM

Learn more about Hydrogen's GitHub integration.

@blittle blittle closed this Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant