phoenxi elixir 框架几个方便的命令
1. 已有命令
mix app.start # Starts all registered apps
mix app.tree # Prints the application tree
mix archive # Lists installed archives
mix archive.build # Archives this project into a .ez file
mix archive.install # Installs an archive locally
mix archive.uninstall # Uninstalls archives
mix clean # Deletes generated application files
mix cmd # Executes the given command
mix compile # Compiles source files
mix deps # Lists dependencies and their status
mix deps.clean # Deletes the given dependencies' files
mix deps.compile # Compiles dependencies
mix deps.get # Gets all out of date dependencies
mix deps.tree # Prints the dependency tree
mix deps.unlock # Unlocks the given dependencies
mix deps.update # Updates the given dependencies
mix do # Executes the tasks separated by comma
mix ecto # Prints Ecto help information
mix ecto.create # Creates the repository storage
mix ecto.drop # Drops the repository storage
mix ecto.dump # Dumps the repository database structure
mix ecto.gen.migration # Generates a new migration for the repo
mix ecto.gen.repo # Generates a new repository
mix ecto.load # Loads previously dumped database structure
mix ecto.migrate # Runs the repository migrations
mix ecto.migrations # Displays the repository migration status
mix ecto.rollback # Rolls back the repository migrations
mix escript # Lists installed escripts
mix escript.build # Builds an escript for the project
mix escript.install # Installs an escript locally
mix escript.uninstall # Uninstalls escripts
mix format # Formats the given files/patterns
mix gettext.extract # Extracts translations from source code
mix gettext.merge # Merge template files into translation files
mix help # Prints help information for tasks
mix hex # Prints Hex help information
mix hex.audit # Shows retired Hex deps for the current project
mix hex.build # Builds a new package version locally
mix hex.config # Reads, updates or deletes local Hex config
mix hex.docs # Fetches or opens documentation of a package
mix hex.info # Prints Hex information
mix hex.organization # Manages Hex.pm organizations
mix hex.outdated # Shows outdated Hex deps for the current project
mix hex.owner # Manages Hex package ownership
mix hex.publish # Publishes a new package version
mix hex.repo # Manages Hex repositories
mix hex.retire # Retires a package version
mix hex.search # Searches for package names
mix hex.user # Manages your Hex user account
mix loadconfig # Loads and persists the given configuration
mix local # Lists local tasks
mix local.hex # Installs Hex locally
mix local.phoenix # Updates Phoenix locally
mix local.phx # Updates the Phoenix project generator locally
mix local.public_keys # Manages public keys
mix local.rebar # Installs Rebar locally
mix new # Creates a new Elixir project
mix phoenix.gen.html # Generates controller, model and views for an HTML based resource
mix phoenix.new # Creates a new Phoenix v1.3.2 application
mix phoenix.server # Starts applications and their servers
mix phx.digest # Digests and compresses static files
mix phx.digest.clean # Removes old versions of static assets.
mix phx.gen.channel # Generates a Phoenix channel
mix phx.gen.context # Generates a context with functions around an Ecto schema
mix phx.gen.embedded # Generates an embedded Ecto schema file
mix phx.gen.html # Generates controller, views, and context for an HTML resource
mix phx.gen.json # Generates controller, views, and context for a JSON resource
mix phx.gen.presence # Generates a Presence tracker
mix phx.gen.schema # Generates an Ecto schema and migration file
mix phx.gen.secret # Generates a secret
mix phx.new # Creates a new Phoenix v1.3.2 application
mix phx.new.ecto # Creates a new Ecto project within an umbrella project
mix phx.new.web # Creates a new Phoenix web project within an umbrella project
mix phx.routes # Prints all routes
mix phx.server # Starts applications and their servers帮助命令使用:
比如:
mix help mix phx.gen.json
2. 查看路由(方便进行功能的实现)
mix phx.routes参考:Generated hello app
page_path GET / Hello.PageController :index
page_path GET /index/:name Hello.PageController :appdemo
user_path GET /user/:name Hello.UserController :index
demo_path GET /api/demo Hello.DemoController :index
demo_path GET /api/demo Hello.DemoController :index
demo_path GET /api/demo/:id/edit Hello.DemoController :edit
demo_path GET /api/demo/new Hello.DemoController :new
demo_path GET /api/demo/:id Hello.DemoController :show
demo_path POST /api/demo Hello.DemoController :create
demo_path PATCH /api/demo/:id Hello.DemoController :updatePUT /api/demo/:id Hello.DemoController :update
demo_path DELETE /api/demo/:id Hello.DemoController :delete
mix phx.gen.json Accounts User users --table cms_users
phoenix 依赖mix deps.get --only prod
MIX_ENV=prod mix compile资源(web)brunch build --production (构建)
mix phx.digest (压缩)启动PORT=4001 MIX_ENV=prod mix phx.serverorPORT=4001 MIX_ENV=prod iex -S mix phx.serveror 守护进程模式MIX_ENV=prod PORT=4001 elixir --detached -S mix do compile, phx.server
因为新版phoenix 脚手架创建web 的目录已经调整到了lib目录 <app>_web 命名,使用旧版本的代码可能需要调整
https://hexdocs.pm/phoenix/deployment.html
https://hexdocs.pm/phoenix/phoenix_mix_tasks.html
phoenxi elixir 框架几个方便的命令相关推荐
- [渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:MVC程序中实体框架的连接恢复和命令拦截...
这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第四篇:MVC程序中实体框架的连接恢复和 ...
- 学习大数据的第46天(Hadoop篇)——Hadoop框架的认识以及基础命令的认识
学习大数据的第46天(Hadoop篇)--Hadoop框架的认识以及基础命令的认识 Hadoop的学习笔记 大数据的特点: 大量.高速.多样化 概述: Hadoop是一个适合海量数据的分布式存储和分布 ...
- 午夜之后的暗杀者 维基解密又公布CIA的两个Windows恶意软件框架 主要用于监控及执行命令...
当全球忙于应对自动传播的WannaCry勒索软件所带来的威胁时 ,维基解密发布了"Vault 7"(第七号保险库)的新一轮中央情报局(CIA)机密信息,详细介绍了CIA明显针对微软 ...
- 在Linux(Ubuntu16.04)上用Django框架建立网站的常用命令
Linux建站常用命令 1. 管理uwsgi: ps aux | grep uwsgi (查看uwsgi进程) uwsgi --ini uwsgi.ini (启动uwsgi) uwsgi --stop ...
- Cypress UI自动化测试框架学习(5)-命令大全
Cypress UI自动化测试框架常用命令介绍 命令大全 and:创建断言 as:创建别名 blur:失去焦点 check:选中 check 或者 radio children:获取一组DOM元素中每 ...
- fate框架找不到 flow 命令
在Doc中,马上就用了flow命令,而还没有给出flow在哪里,所以这篇博客解决这个问题 参考网站:https://github.com/FederatedAI/FATE/blob/master/ex ...
- Android网络框架(二)——策略路由与常用命令
目录 一. 策略路由 1.1 默认路由表 1.2 默认规则 1.3 路由 二. 命令 2.1 ip route 2.2 ip rule 一. 策略路由 传统路由:在Android4.4之前是使用的传统 ...
- python编写命令行框架_python的pytest框架之命令行参数详解(上)
前言 pytest是一款强大的python自动化测试工具,可以胜任各种类型或者级别的软件测试工作.pytest提供了丰富的功能,包括assert重写,第三方插件,以及其他测试工具无法比拟的fixtur ...
- 部署Elixir项目
部署Elixir项目,确定其环境配置完成以后. 部署步骤: 数据库连接文件可以移植出项目代码中,保证项目根据安全性. 方法1: 例如,在"/var/config.prod.exs" ...
最新文章
- 009-回归测试的测试范围是什么?
- 一名毕业三年的女程序媛面试头条经验,重难点整理
- ThinkPad X220i 刷白名单BIOS,改装第三方无线网卡
- java继承序列化_java中序列化之子类继承父类序列化
- ARIMA模型之疏系数模型
- 4-1 面向对象概述
- Navicat 安装过程问题总结
- 一个量化交易员的日常:屌丝版VS土豪版
- 玩游戏计算机丢失msvcp,计算机丢失msvcp,因计算机丢失msvcp140
- Apache AXIS 1.4 RCE
- html5进度条progress使用实例,HTML5中的进度条progress元素详解
- hexo博客yilia主题作者名字的更改
- android停止蓝牙音乐服务,蓝牙音乐播放状态一直为暂停态
- 手机录制的视频怎么旋转回来
- Knowledge-aware Graph Neural Networks with Label Smoothness Regularization for Recommender Systems
- 个人博客搭建系列(一) 之 阿里云购买域名及解析对应ip地址
- 立创开源丨红外手电筒遥控器(大功率)
- C语言 —— for循环(一)
- 【其他】用ps切片处理素材
- kubernetes pod podsecurityPolicies(PSP)
热门文章
- 《经济的律动》徐远(作者)epub+mobi+azw3格式下载
- 新手学编程前端好还是后端?
- [球体积交]Girlfriend 2021牛客多校第2场 F
- 匿名上位机v2.6和V7自定义帧代码和飞控姿态代码
- 计算机工作理想湿度,计算机理想的工作温度七月的盛夏,碧空中没有一丝云彩,只剩下纯(9)...
- 好用的浏览器,与Google Chrome同内核
- 【源码】基于PMSG的风力发电机组仿真与建模
- 根据公众号得到公众号二维码
- 为什么微信显示这个android设备,微信显示安卓手机型号在哪设置
- h5py基本使用教程