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.

How to use in production - NodeJS

See original GitHub issue

This may be an overall question and not slingshot specific, but how would one run this in production with a node server?

It is simple enough to run within IIS with the dist as a directory, but it seems like trying to run/deploy as node js server it would need to have a second package.json to and scripts for the server side.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
coryhousecommented, Apr 7, 2016

The resulting app written to /dist is just static files, so any host will do. No server-side needed. That’s a feature.

If you want to host it via Node, then an extremely simple express setup would do the trick. Here’s an example.

1reaction
coryhousecommented, Apr 19, 2016

Great to hear! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Set Up a Node.js Application for Production on ...
First, create and open your Node.js application for editing. For this tutorial, we will use nano to edit a sample application called hello.js...
Read more >
Express Tutorial Part 7: Deploying to production
Set node version. The package.json contains everything Railway needs to work out your application dependencies and what file should be launched ...
Read more >
How to Deploy a Node.js App – From Server Setup to Production
In this tutorial, we are going to learn everything we need to know before deploying a Node app to a production server.
Read more >
How Do You Start a Node.js Server in Production?
To start an application in the background, you simply append & at the end of the command. Using the example from earlier, node...
Read more >
Operating Node.js in Production - RisingStack Engineering
We have already discussed how you can deploy your Node.jsXNode.js is an asynchronous event-driven JavaScript runtime and is the most ...
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