forked from stelace/marketplace-demo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from justinschuldt/misc/launch
Misc/launch
- Loading branch information
Showing
8 changed files
with
171 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require('dotenv').config({ path: '.env.development' }) | ||
const { execSync } = require('child_process') | ||
|
||
// Netlify ID set with Netlify CLI will automatically be used, unless you have | ||
// a specific NETLIFY_ID_FOR_PRODUCTION set in .env.production you want to deploy to. | ||
const specificDevId = process.env.NETLIFY_ID_FOR_DEV | ||
const setNetlifyProjectId = specificDevId | ||
? `cross-env NETLIFY_SITE_ID=${specificDevId} ` : '' | ||
|
||
execSync( | ||
// --prod param means Netlify won’t generate a specific URL for deployment, | ||
// unlike plain npm run deploy, | ||
// but deploy to main project URL like yourwebsite.netlify.com or yourwebsite.com | ||
`${setNetlifyProjectId}netlify deploy --prod --dir=dist/spa`, | ||
{ stdio: 'inherit' } | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters