Skip to content

Commit

Permalink
fix: deploy to heroku workflow (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored Feb 28, 2021
1 parent ac682af commit d6dfdb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/deploy/heroku.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import inquirer from 'inquirer';
import path from 'path';

import * as logger from '../../utils/logger';
import { fetchProjectConfig, readFileContent } from '../../utils/helpers';
import { fetchProjectConfig } from '../../utils/helpers';
import { validateInput, validateInstallation } from '../../utils/validate';

/**
Expand Down Expand Up @@ -163,7 +163,7 @@ export default async (templateDir) => {
];

let pkgJson = JSON.parse(
readFileContent(path.join('client', 'package.json')),
fs.readFileSync(path.join('client', 'package.json'), 'utf8'),
);
const buildCmd = 'npm run build';
const postInstallScript = `if test \"$NODE_ENV\" = \"production\" ; then ${buildCmd} ; fi `; // eslint-disable-line
Expand Down Expand Up @@ -193,7 +193,7 @@ export default async (templateDir) => {
}

await execa.command('git add .', { cwd: templateDir });
await execa.command(`git commit -m "Add files"`, { cwd: templateDir });
await execa('git', ['commit', '-m', 'Add files'], { cwd: templateDir });

await execa.command('git push heroku master', {
stdio: 'inherit',
Expand Down

0 comments on commit d6dfdb9

Please sign in to comment.