question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use `start` script

See original GitHub issue

The canonical default executable is start script in the package.json file, that by default is server.js file, not bin entry since you can define several binaries in a single package.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
joaodvillacommented, Feb 25, 2020

Hello, is it possible to run a global CLI, like “adonis migration: run” from pkg side?

0reactions
dotcypresscommented, May 13, 2017

Great idea with npm start 👍

Implementing that allows us easily pack micro-services to single executable.

UPD: As quick fix, it possible to use full path to runner in bin script, works well in my case. "bin": "node_modules/micro-bot/bin/micro-bot".

Read more comments on GitHub >

github_iconTop Results From Across the Web

scripts - npm Docs
Pre & Post Scripts​​ To create "pre" or "post" scripts for any scripts defined in the "scripts" section of the package. json ,...
Read more >
How to run your scripts on startup in Windows - ITNEXT
On Windows, the simplest way of running a program at startup is to place an executable file in the Startup folder. All the...
Read more >
Using startup scripts on Linux VMs - Google Cloud
A startup script is a file that performs tasks during the startup process of a virtual machine (VM) instance. Startup scripts can apply...
Read more >
Run a Script on Startup in Linux - Baeldung
2.4. Using systemd · Unit – contains general metadata, like a human-readable description · Service – describes the process and daemonizing ...
Read more >
Changing the npm start-script of Node.js - Tutorialspoint
Script commands are widely used for making different startup scripts of programs in both Node and React. 'npm start' is used for executing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found