about summary refs log tree commit diff
path: root/Vagrantfile
diff options
context:
space:
mode:
authorchandrn7 <chandrn@umich.edu>2021-02-11 16:58:39 -0500
committerGitHub <noreply@github.com>2021-02-11 22:58:39 +0100
commiteb23f985928f5d394209475ad4308a4d20dfb5f2 (patch)
treed77648db262ce9c72f06a3913c43592e829ea027 /Vagrantfile
parent08ae116dc62c51988e9710b4f0cc9fdb2e9557b9 (diff)
Fixed issue with .env.vagrant not setting RAILS_ENV variable (#15709)
* Fixed issue with .env.vagrant not setting RAILS_ENV variable

* made change to fix RAILS_ENV issue in Vagrantfile instead of .env.vagrant
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 7d0f7b3de..bfe2c374f 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -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