Skip to content

Instantly share code, notes, and snippets.

@hamzamu
Last active December 23, 2019 20:43
Show Gist options
  • Save hamzamu/32221fd5271d39a1805c203d98c565e0 to your computer and use it in GitHub Desktop.
Save hamzamu/32221fd5271d39a1805c203d98c565e0 to your computer and use it in GitHub Desktop.
Meteor: Set Env Paramter
import { Meteor } from 'meteor/meteor';
log = console.log
Meteor.startup(() => {
// code to run on server at startup
process.env.ROOT_URL = 'http://localhost';
process.env.PORT = 3333
log('Running at http://localhost:3333')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment