rocdev-foundation / rocdev

RocDev site
MIT License
18 stars 7 forks source link

Missing environment vars in /home/ubuntu/.bashrc #66

Closed danieljaouen closed 5 years ago

danieljaouen commented 6 years ago

I'm trying to get the base box up and running using Vagrant. However, I'm running into some issues compiling the project (using /vagrant/app/app_up) where certain configuration variables are nil due to their not being set in /home/ubuntu/.bashrc. In particular, the one I'm running into is MEETUP_API_BASE, but there might also be issues with the Slack variables (i.e., SLACK_INVITE_API_BASE, SLACK_INVITE_API_TOKEN, SLACK_API_BASE, and SLACK_API_TOKEN).

Actual Behavior

Compile error:

== Compilation error in file lib/rocdev/meetup_api.ex ==
** (CompileError) lib/rocdev/meetup_api.ex:10: invalid literal nil in <<>>
    (elixir) src/elixir_bitstring.erl:19: :elixir_bitstring.expand/6
    (elixir) src/elixir_bitstring.erl:12: :elixir_bitstring.expand/4
    (elixir) expanding macro: Kernel.<>/2
    lib/rocdev/meetup_api.ex:10: Rocdev.MeetupAPI.past/0
    (elixir) expanding macro: Kernel.|>/2
    lib/rocdev/meetup_api.ex:14: Rocdev.MeetupAPI.past/0
    (elixir) lib/kernel/parallel_compiler.ex:121: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

Expected Behavior

mix compile does not throw any errors.

Steps to Reproduce

  1. Run mix compile without the associated environment variables set in /home/ubuntu/.bashrc.
  2. Note compile error.

Relevant Specifications (OS, Hardware, etc.)