在elixir的config中我们有时会使用的到一些不想暴露出来的配置项,常用的作法是如Phoenix #config/prod.exs use Mix.Config ... # Finally import the config/prod.secret.exs # which should be versioned separately. import_config "prod.secret.exs" 在上面,我们可以把不应该暴露的项(如数据库passwd,auth_token...…
将composer的bin目录放到PATH环境变量中 使用composer global config bin-dir --absolute查看composer的bin目录 输出类似 Changed current directory to /home/lijun/.config/composer /home/lijun/.config/composer/vendor/bin /home/lijun/.config/composer/vendor/bin就是composer的bin目录 将/ho…
Environment variables are often used to store a list of paths of where to search for executables, libraries, and so on. 环境变量通常存放一堆路径,这些路径用来搜索可执行文件.动态链接库,等等. Examples are $PATH, $LD_LIBRARY_PATH, 可以通过 echo 命令来查看: [root@localhost ~]# echo $PATH /usr/lo…