Setting Environment Variables in MAMP?

前端 未结 7 1966
孤城傲影
孤城傲影 2020-12-05 00:34

I assume that MAMP environment variables can be set in ~/.bash_profile, but it seems that setting them there does not always take effect right away. For instance, I just set

7条回答
  •  囚心锁ツ
    2020-12-05 01:09

    You can set your environment variables in Apache configuration...

    /Applications/MAMP/conf/apache/httpd.conf
    
    SetEnv MY_VAR theValue
    SetEnv ANOTHER thisIsTheValue
    

提交回复
热议问题