Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing grails in linux

Tags:

linux

grails

I am new to using Linux. I installed grails by setting env variable GRAILS_HOME and added ot to PATH variable. I also exported both and when I typed in grails command.. It worked fine. When I closed that terminal session and opened a another new session, all the env variables that I had set up has all gone.

I was wondering how to have them available for all sessions.

Any help is appreciated

Thanks

like image 226
Shenoy Tinny Avatar asked Nov 30 '22 03:11

Shenoy Tinny


1 Answers

Edit the .bashrc file of the user launching Grails.

Add the same lines as your commands:

GRAILS_HOME=/home/of/grails

export GRAILS_HOME

PATH=$PATH:$GRAILS_HOME/bin
like image 73
Vincent PALITA Avatar answered Dec 05 '22 14:12

Vincent PALITA