官术网_书友最值得收藏!

  • Phoenix Web Development
  • Brandon Richey
  • 166字
  • 2021-08-27 18:28:22

Installing Phoenix 1.3

For best results, you'll want to make sure you have the most recent version of Hex installed on your local machine. Again, the assumption here is that you already have Elixir installed on your computer:

$ mix local.hex
Found existing entry: /Users/brandon.richey/.mix/archives/hex-0.16.1
Are you sure you want to replace it with "https://repo.hex.pm/installs/1.5.0/hex-0.17.1.ez"? [Yn] y
* creating /Users/brandon.richey/.mix/archives/hex-0.17.1

Now we'll move on to installing Phoenix itself. Installing Phoenix is a little bit different from just installing something via a hex package on an existing Elixir project. You'll want to use Phoenix’s project generators to get your project up and running, as there is a lot of additional setups required compared to a small, standard Elixir project. This is why you need to go through a separate process to install Phoenix.

To install the Phoenix framework and get access to the Mix tasks needed to create new Phoenix projects, you'll want to run the following code:

$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez
* creating /Users/brandon.richey/.mix/archives/phx_new
主站蜘蛛池模板: 马龙县| 安吉县| 涞源县| 婺源县| 新昌县| 和硕县| 南江县| 定远县| 宝鸡市| 烟台市| 无极县| 琼海市| 舟山市| 常宁市| 海丰县| 扎鲁特旗| 阿拉尔市| 灯塔市| 威信县| 容城县| 台州市| 湘潭市| 巴南区| 琼中| 绥棱县| 桦川县| 海城市| 河源市| 泌阳县| 阳泉市| 怀宁县| 揭西县| 岳池县| 达州市| 梁平县| 南康市| 沈丘县| 仁化县| 庐江县| 望都县| 区。|