Skip to content

Commit 97d6a4a

Browse files
committed
refactor: use suite to start service
1 parent e822fcc commit 97d6a4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.suite-cli/cli/scripts/assets/serverContent.asset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const app = express();
2121
app.use(express.json());
2222
2323
app.get('/', (req, res) => {
24-
res.json({ messae: 'hello from ${answers.project_base}/${answers.service_name}' });
24+
res.json({ message: 'hello from ${answers.project_base}/${answers.service_name}' });
2525
});
2626
2727
const server = http.createServer(app);

.suite-cli/cli/scripts/scripts.module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,14 +920,14 @@ const addPackageJson = async ({ project_root, answers }) => {
920920
childProcess.on('error', error => {
921921
spinner.fail('Failed to execute command');
922922
});
923-
923+
// TODO: check if yarn is installed first
924924
childProcess.on('exit', (code, signal) => {
925925
if (code !== 0) {
926926
spinner.fail('Command failed to complete successfully');
927927
return;
928928
}
929929
spinner.succeed('Dependencies installed successfully');
930-
spinner.info(`To start the project, run 'cd ${answers.repo_name} && yarn dev'`)
930+
spinner.info(`To start the project, run 'cd ${answers.repo_name} && suite start -v ${answers.service_name}'`)
931931
});
932932
}
933933

0 commit comments

Comments
 (0)