Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue with .env.vagrant not setting RAILS_ENV variable #15709

Merged
merged 2 commits into from
Feb 11, 2021

Conversation

chandrn7
Copy link
Contributor

@chandrn7 chandrn7 commented Feb 11, 2021

When setting up a dev environment with Vagrant came across an issue. Because the RAILS_ENV variable wasn't set in .env.vagrant the dev database wasn't being set up.

@chandrn7 chandrn7 closed this Feb 11, 2021
@chandrn7 chandrn7 deleted the fix-vagrant branch February 11, 2021 17:42
@chandrn7 chandrn7 restored the fix-vagrant branch February 11, 2021 17:57
@chandrn7 chandrn7 reopened this Feb 11, 2021
@Gargron
Copy link
Member

Gargron commented Feb 11, 2021

You can't put RAILS_ENV into an .env file since RAILS_ENV defines which .env file will be read. There's got to be another place to put that in the Vagrant config.

@chandrn7
Copy link
Contributor Author

Ok, made the changes in the Vagrantfile instead.

@Gargron Gargron merged commit eb23f98 into mastodon:main Feb 11, 2021
@chandrn7 chandrn7 deleted the fix-vagrant branch February 11, 2021 22:35
chrisguida pushed a commit to Start9Labs/mastodon that referenced this pull request Feb 26, 2022
…n#15709)

* Fixed issue with .env.vagrant not setting RAILS_ENV variable

* made change to fix RAILS_ENV issue in Vagrantfile instead of .env.vagrant
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