I tried to export some variable.
I create file
.bash_profile and put inside
After it I reboot my ubuntu, login, but nothing happens.
My system is fresh ubuntu 18.04.
What I do wrong?
Probably not what you're looking for, but I don't believe
.bash_profile exists. Try adding that export command to
echo "export SPRING_PROFILES_ACTIVE=local" >> .profile
(Tested on Debian Stretch; I don't use Ubuntu, but the fact you said "I create
.bash_profile" is odd)
For your reference:
login shell startup file processing diagram for different shells
(Credit for diagram is going to Shantanu Kulkarni who posted it in yEd gallery)