![]() Access PlausibleWeb.Endpoint at I had to compile the assets with npm install, after that, everything seems fine: ~/D/p/plausible (master ) mix phx.server You may fix this by running "cd assets & npm install". Your Phoenix application is still running, however assets won't be compiled. Running PlausibleWeb.Endpoint with cowboy 2.7.0 at 0.0.0.0:8000 (http ) Could not start node watcher because script "/Users/christian/Documents/projects/plausible/assets/node_modules/webpack/bin/webpack.js" does not exist. The database for Plausible.Repo has been created ~/D/p/plausible (master ) mix ecto.create Mix ecto.rollback # Rolls back the repository migrations Mix ecto.reset # Alias defined in mix.exs Mix ecto.migrations # Displays the repository migration status Mix ecto.migrate # Runs the repository migrations Mix ecto.load # Loads previously dumped database structure Mix # Generates a new migration for the repo Mix ecto.dump # Dumps the repository database structure Mix ecto.drop # Drops the repository storage Mix ecto.create # Creates the repository storage Solved with mix ecto.create: ~/D/p/plausible (master ) mix ectoĪ toolkit for data mapping and language integrated query for Elixir. Got the error Postgrex.Protocol ( #PID) failed to connect: ** (Postgrex.Error) FATAL 3D000 (invalid_catalog_name) database "plausible_dev" does not exist Randomized with seed 396356 Running locally with mix phx.server mix phx.server Now all the tests run fine, as expected: ~/D/p/plausible (master ) mix test. So,let’s boot up a postgresql instance with docker: docker run -d -p 5432:5432 -v postgres-data:/var/lib/postgresql/data -name postgres1 postgres ** (Mix ) The database for Plausible.Repo couldn't be created: killed (stdlib ) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 (connection ) lib/connection.ex:622: Connection.enter_connect/5 ![]() (db_connection ) lib/db_connection/connection.ex:87: /2 ** (DBConnection.ConnectionError ) tcp connect (localhost:5432 ): connection refused - :econnrefused This yields the error about the missing postgresql connection 09:11:52.095 GenServer #PID terminating Let’s go then! Getting started with the plausible elixir code git clone :christian-fei/plausible.git There are no restrictions on redistributing, modifying or using this software for any reason. Plausible is open-source under the most permissive MIT license. Currently, the purpose of keeping the code open-source is to be transparent with the community about how we collect and process data. Started following these accounts on Twitter:Īt the moment we don’t provide support for easily self-hosting the code. ![]() Watched “Elixir: A Mini-Documentary 2018”, very interesting video about the Elixir’s history, touching on topics from the BEAM virtual machine, IoT scalability and general usage on the web services that can handle million of connections. Was on 1.9.1, 1.10.2 iss the latest stable release at the time of writing. Updated to latest elixir version with brew upgrade elixir. Without further ado, below my journey (in form of a daily journal) about learning more about Elixir (again), the BEAM, plausible analytics and things discovered along the way! 3įorked the repo -> christian-fei/plausible 4 I post-poned this too much now, it’s time to get back to the distributed programming world. On 2, during quarantine, I decided to get back to Elixir (who knows: maybe even dabble with Erlang directly). I also went to my first Erlang+Elixir conf, and had the chance & honour to meet Joe Armstrong, #rememberingjoe. Thanks to the help of some dear colleagues I had the opportunity to get valuable feedback and learn even more concepts about GenServers, the BEAM virtual machine, ETS and Erlang+Elixir in general. As soon as Elixir was released a few years ago, I got into it and started learning and building things with it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |