Skip to content

Build command#9

Merged
coffee-cup merged 3 commits intomasterfrom
j/rail-381-railway-build-command
Oct 4, 2020
Merged

Build command#9
coffee-cup merged 3 commits intomasterfrom
j/rail-381-railway-build-command

Conversation

@coffee-cup
Copy link
Copy Markdown
Contributor

Lots of it taken from Suryas PR.

railway build command that dumps the env to .railway/env.json if the RAILWAY_PRODUCTION_TOKEN environment variable exists. We are not actually using the variable yet as a gql query needs to be built to handle it.

@linear
Copy link
Copy Markdown

linear Bot commented Oct 3, 2020

Comment thread cmd/build.go Outdated
return err
}

fmt.Println(fmt.Sprintf("Env written to %s \n Do NOT commit the env.json file. This command should only be run as a production build step.", h.cfg.RailwayEnvFilePath))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use multiline string with backticks here

https://golang.org/ref/spec#String_literals

@coffee-cup coffee-cup merged commit b702d6c into master Oct 4, 2020
@coffee-cup coffee-cup deleted the j/rail-381-railway-build-command branch October 4, 2020 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants