Skip to content

Commit

Permalink
fix: regression
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Mar 28, 2020
1 parent 4cc5e7f commit d70dee4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/commands/deploy/heroku.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const isLoggedIn = async () => {
*/

const deployToHeroku = async () => {
validateInstallation('heroku');
validateInstallation('git help -g');
await validateInstallation('heroku');
await validateInstallation('git help -g');

const projectConfig = appData();
const { template } = projectConfig;
Expand Down
4 changes: 2 additions & 2 deletions src/utils/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const templateIsGraphQL = () => {
`model, route and controller`,
)} directories!`;
console.log(
chalk.red.bold(
chalk.yellow.bold(
`\n Warning:- ${chalk.cyan.bold(`${msg}
`)}`,
),
Expand Down Expand Up @@ -85,7 +85,7 @@ export const checkIfServerExists = async () => {

export const dependencyNotInstalled = dependency => {
console.log(
chalk.red.bold(` Warning:- ${chalk.cyan.bold(
chalk.yellow.bold(` Warning:- ${chalk.cyan.bold(
`${dependency} is required to be installed`,
)}
`),
Expand Down
4 changes: 2 additions & 2 deletions src/utils/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const validateInput = componentName => {
const exec = async cmd => {
return new Promise(async () => {
try {
if (!isWin) {
if (isLinux) {
await execa.shell('sudo apt update', { stdio: 'inherit' });
}
await execa.shell(cmd), { stdio: 'inherit' };
Expand Down Expand Up @@ -149,7 +149,7 @@ const installDocker = async () => {
*/

const installHerokuCLI = async () => {
await exec('npm install -g heroku-cli');
await exec('npm install -g heroku');
};

module.exports = {
Expand Down

0 comments on commit d70dee4

Please sign in to comment.