From: chandrn7 Date: Thu, 11 Feb 2021 21:58:39 +0000 (-0500) Subject: Fixed issue with .env.vagrant not setting RAILS_ENV variable (#15709) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=eb23f985928f5d394209475ad4308a4d20dfb5f2;p=mastodon.git 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 --- 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