mix

elixir+hex - getting hex error for ranch_proxy_protocol ssl:ssl_accept 3 deprecated

无人久伴 提交于 2019-12-24 01:10:37
问题 enter code here I am running below command mix ecto.create && mix ecto.migrate which gives an error ===> Compiling ranch_proxy_protocol ===> Compiling src/ranch_proxy_ssl.erl failed src/ranch_proxy_ssl.erl:90: ssl:ssl_accept/3: deprecated; use ssl:handshake/3 instead ** (Mix) Could not compile dependency :ranch_proxy_protocol, "/Users/a5634160/.mix/rebar3 bare compile --paths "/Users/a5634160/Documents/parc_web/pfom/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency

Laravel 5.4 Mix in c9.io ide

醉酒当歌 提交于 2019-12-21 23:43:22
问题 I've been trying to get Laravel Mix NodeJS compiling scripts to run in the c9 ide for hours now hopefully someone has a explanation or a fix. So basically I'm trying to compile my sass and a javascript file which both are default so there is no possibility of errors within the code. My webpack.mix.js is default and well and all I'm trying to do is run the npm command "npm run dev" which compiles the files without uglifying it and such. "npm run watch" which auto compiles every time you save

Elixir mix auto acknowledge

无人久伴 提交于 2019-12-21 08:17:59
问题 I want to run tests of my Phoenix app on Travis-CI. Log excerpt: $ MIX_ENV=test mix do deps.get, compile, test Could not find hex, which is needed to build dependency :phoenix Shall I install hex? [Yn] When it comes to fetching and installing dependencies, it asks if it should install hex . I was wondering if I can pass a --yes option to mix so that it doesn't ask but just installs? 回答1: As with any unix command, you could pipe yes into the mix command: yes | MIX_ENV=test mix do deps.get,

dialyxir mix task to create PLT exits without error or creating table

喜夏-厌秋 提交于 2019-12-20 06:39:55
问题 I am trying to use dialyxir to run dialyzer analysis on my project through the mix tasks it provides. I have added it to my dependencies and compiled as per the README. When I run the mix dialyxir.plt it reports no error and yet exits without creating the table. $ mix dialyzer.plt Starting PLT Core Build ... this will take awhile dialyzer --build_plt --output_plt /home/vagrant/.dialyxir_core_19_1.3.2.plt --apps erts kernel stdlib crypto public_key -r /usr/local/lib/elixir/bin/../lib/elixir/..

Illegal mix of collations for operation like

北城以北 提交于 2019-12-19 17:54:37
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Illegal mix of collations for operation like 在 MySQL 5.5 以上, 若字段 Type 是 time,date,datetime 在 select 時若使用 like '%中文%' 会出現 Illegal mix of collations for operation 'like' 在写程序时要对每个字段进行搜索,在执行时可能就会出现时间字段 like '%中文%' 这种语法, 这在比较久的版本MySQL是不会出现错误的。但是升级到MySQL 5.5以上, 必需改成like binary '%中文%' 即可避免出现错误 来源: oschina 链接: https://my.oschina.net/u/1450300/blog/671295

How do I set the default Elixir mix task

余生长醉 提交于 2019-12-19 05:24:14
问题 If I have a mix.exs file something like: defmodule Mix.Tasks.My_task do use Mix.Task @shortdoc "Perform my task" def run(_) do IO.puts "Working" end end defmodule ElixirKoans.Mixfile do use Mix.Project def project do ... end I can happily run this with mix my_task . How do I make my_task be the default, so it is executed when I run mix without a task? 回答1: It looks like you can define inside the project block (mix.exs) using default_task : def project do [default_task: "run"] end More info:

Block-scoped declarations not yet supported outside strict mode

偶尔善良 提交于 2019-12-17 17:57:15
问题 I'm running Laravel 5.4 on my Homestead vagrant box. I've installed all the npm dependencies with npm install command. That didn't produce any errors. In my webpack.min.js file I have: const { mix } = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel

Mix task “release” not found error

◇◆丶佛笑我妖孽 提交于 2019-12-13 22:21:59
问题 I was setting up an Ubuntu 16.04 server for my Elixir/Phoenix application with edeliver when edeliver failed with the error message ** (Mix) The task "release" could not be found along with a exit code of 1. If I go to my build server, git pull my app and run MIX_ENV=prod mix release or just mix release after getting dependencies, I get the same error. However, the same application works without any problem locally. My erlang version is erts-9.0 and elixir version is 1.5.5 on both the server

Cross DB Ecto config failing

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 10:28:26
问题 In config/dev.exs : config :drupex, Drupex.Repo, adapter: Ecto.Adapters.Postgres, -- username, password, database, hostname, pool_size omitted -- config :drupex, Drupex.DrupalRepo, adapter: Ecto.Adapters.Mysql, -- username, password, database, hostname omitted -- In mix.exs under defp deps do I added {:mariaex, "~> 0.8.2"}, just after {:postgrex, ">= 0.0.0"} . Finally in lib/drupex/repo.ex I added defmodule Drupex.DrupalRepo do use Ecto.Repo, otp_app: :drupex end I ran mix deps.get , mix deps

how can i using mix(Elixir) install package install to system?

会有一股神秘感。 提交于 2019-12-13 09:42:35
问题 I just want run IEx to require this package, I do not want create a mix project and into the deps. For example, gem install bundle How do I do this? 回答1: As I understood, mix archive.install is useful to install archives that will provide mix tasks. What you could do is to put all the .beam files in a repository that will be specified at iex/elixir startup (with the -pa $CUSTOMPATH option). This will load the .beam files during elixir startup. For instance, in the elixir shell script, there