Comments (6)
@WillGarman Let's just set up a manual process that is well-documented on how to import/export the dev
dataset to the production
dataset.
Potential gotcha's:
- How does content merge? For example, does content created during the dev process get overwritten during the import
TODO: Figure out tags when running import/export
dataset commands
from ainc-gatsby-sanity.
Notes:
-
Workflow to create new documents for production
-
Use
local
machine to create document on your personal tagged dataset (Commit for reference on how to switch to change tags) -
Export from your tagged dataset, then import into the
dev
dataset using either--missing
or--replace
flags (Documentation) -
In the
dev
dataset, then add content to your new document in the Sanity Dashboard -
Then export from the
dev
dataset, and import into theproduction
dataset using the--missing skip
flag (adds any missing data, skips any data with same Id's) -
Possible have to do
sanity graphql deploy
to update the GraphQL (After adding code in `/documents)) -
Yay you're done... hopefully (Refer to the commands below)
-
- Note: these commands will only transfer the content of the documents, you will still need to add the document code to the
studio/douments
folder
- Note: these commands will only transfer the content of the documents, you will still need to add the document code to the
Confirmed command sequence once a schema is made in your tagged
dataset
These 2 commands will export from your tagged
dataset into the dev
dataset
sanity dataset export dev --tag [tagName] ./tagged.tar.gz
(Export fromtagged
dataset)sanity dataset import ./tagged.tar.gz dev --missing skip
(Import intodev
dataset) this will add all missing data and skip any data with the same id
After this step, you would populate the content in sanity
Then, these 2 commands will import your data from dev
to production
sanity dataset export dev ./dev.tar.gz
(Export fromdev
dataset)
Create a backup ofproduction
dataset (Possible GitHub action)sanity dataset export production ./production.tar.gz
(Export fromproduction
dataset)
Import from dev
into production
sanity dataset import ./dev.tar.gz production --missing skip
(Import intoproduction
dataset)
from ainc-gatsby-sanity.
@WillGarman Anything left to keep this issue open? Is the above documentation in the Readme?
from ainc-gatsby-sanity.
@WillGarman Anything left to keep this issue open? Is the above documentation in the Readme?
@raney24 the documentation has not been added to the readme. Once it gets put in there then this issue doesn't need to be open any longer
from ainc-gatsby-sanity.
@WillGarman Can you add that in and then close this?
from ainc-gatsby-sanity.
Added!
from ainc-gatsby-sanity.
Related Issues (20)
- Bootcamp page redesign HOT 1
- /bootcamp "Jump To" navigation menu on mobile
- Add Private Office video to website
- Bootcamp Redesign (Colin) HOT 1
- Bootcamp Redesign Testimonials
- All Mobile Bug Fixes HOT 1
- Bootcamp specific mobile bug fixes HOT 1
- workspace buttons
- Apply button on lg screen
- Modals on AppleOS
- Mobile UI/UX Changes HOT 2
- Q2 Website Updates
- Q2 Website Updates
- Bootcamp Calendly mobile issue
- Clean up Sanity
- /woc page
- blog page overflow
- fellowship page updates
- Sticky toolbar for blog editing
- make it easier to insert photos into blogs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ainc-gatsby-sanity.