Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Launcher #240

Closed
Rich-Harris opened this issue Apr 16, 2018 · 1 comment
Closed

Launcher #240

Rich-Harris opened this issue Apr 16, 2018 · 1 comment

Comments

@Rich-Harris
Copy link
Member

If Sapper created a launcher file, it wouldn't be necessary to have Sapper itself installed in order to run the app.

The launcher file could be as simple as

process.env.NODE_ENV = 'production';
process.env.PORT = 3000; // configurable at build time
require('./build/server.js');

Proposed command:

sapper build --launcher start.js

# or equivalently
sapper build -l

Then, instead of sapper start, you'd just do node start.js.

Rich-Harris added a commit that referenced this issue May 4, 2018
@Rich-Harris
Copy link
Member Author

Exists in 0.11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant