[show command][xs]: build portal app based on the example code.
This commit is contained in:
parent
6d46e79684
commit
229c6e7197
@ -77,10 +77,10 @@ async function run() {
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
const portalGithubRepo = "https://github.com/datopian/portal-experiment.git"
|
||||
const portalLocalRepoDirectory = path.join(datasetPath, 'portal-experiment')
|
||||
const portalGithubRepo = 'https://github.com/datopian/portal.js/tree/main/examples/dataset-frictionless'
|
||||
const portalLocalRepoDirectory = path.join(datasetPath, 'portal')
|
||||
|
||||
const cloneRepoCmd = `cd ${datasetPath} && git clone ${portalGithubRepo}`
|
||||
const cloneRepoCmd = `cd ${datasetPath} && npx create-next-app portal -e ${portalGithubRepo}`
|
||||
|
||||
// CD into portalLocalRepoDirectory, create an .env file and write PORTAL_DATASET_PATH={datasetPath} to it
|
||||
const createEnvFileCmd = `cd ${portalLocalRepoDirectory} && touch .env && echo PORTAL_DATASET_PATH=${datasetPath} >> .env`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user