]> cat aescling's git repositories - mastodon.git/commitdiff
Fixed issue with .env.vagrant not setting RAILS_ENV variable (#15709)
authorchandrn7 <chandrn@umich.edu>
Thu, 11 Feb 2021 21:58:39 +0000 (16:58 -0500)
committerGitHub <noreply@github.com>
Thu, 11 Feb 2021 21:58:39 +0000 (22:58 +0100)
* Fixed issue with .env.vagrant not setting RAILS_ENV variable

* made change to fix RAILS_ENV issue in Vagrantfile instead of .env.vagrant

Vagrantfile

index 7d0f7b3defc1cf09146efd0ca6f75da78e59f811..bfe2c374f93a2a210eeeab913ef79fcf6699c786 100644 (file)
@@ -72,10 +72,12 @@ bundle install
 yarn install
 
 # Build Mastodon
+export RAILS_ENV=development 
 export $(cat ".env.vagrant" | xargs)
 bundle exec rails db:setup
 
 # Configure automatic loading of environment variable
+echo 'export RAILS_ENV=development' >> ~/.bash_profile
 echo 'export $(cat "/vagrant/.env.vagrant" | xargs)' >> ~/.bash_profile
 
 SCRIPT