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

specify config file? #1148

Open
meecect opened this issue Nov 22, 2023 · 1 comment
Open

specify config file? #1148

meecect opened this issue Nov 22, 2023 · 1 comment

Comments

@meecect
Copy link

meecect commented Nov 22, 2023

Is there a way to specify the config.stencil.json file to use?

I want one repo that I can push to my sandbox and to production, and have two config files.

@onur-o7
Copy link

onur-o7 commented Nov 23, 2023

You could check cornerstore theme workflow file.

https://github.com/bigcommerce/cornerstone/blob/master/.github/workflow-examples/automatic_deployment_production.yml

Just add config files to the gitignore and run stencil init with your production credentials.

 - name: Connect to store
      env:
        URL: ${{ secrets.STENCIL_STORE_URL_PRODUCTION }}
        TOKEN: ${{ secrets.STENCIL_ACCESS_TOKEN_PRODUCTION }}
      run: stencil init -u $URL -t $TOKEN -p 3000 -h https://api.bigcommerce.com

    - name: Push theme live, automatically deleting oldest theme if necessary
      run: stencil push -a -d -c 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants