Closed salazarpardo closed 5 years ago
Vulcan can instead use the SOURCE_VERSION
environment variable. Try adding the code from https://github.com/zodern/meteor-up/issues/807#issuecomment-346915622 to your config.
Yes, what happened is that I wanted to make this work both if you're running a Mup deployment, or locally when working in dev mode. But I forgot to address the case where you're deploying but without setting the env variable… I've just pushed a Vulcan update that wraps it in a try/catch block to avoid this issue:
export const getSourceVersion = () => {
try {
return (
process.env.SOURCE_VERSION ||
childProcess
.execSync('git rev-parse HEAD')
.toString()
.trim()
);
} catch (error) {
return null;
}
};
@SachaG @zodern Thank you both for your help! I updated Vulcan and was able to deploy my site successfully!
Hi, I am trying to deploy a meteor app based on Vulcan.js, haven't been able to get past the Verifying Deployment step as it throws a git related error, but I am not sure where should I init or install git, or how can I fix it. Please help! Thanks in advance :)
Mup version (
1.4.5
):Mup config
Output of command