Custom phoenix server portRunning mix phx.server for a Phoenix project with the default settings will attach the server to port 4000. If you'd like to use a different port in development, you can change it in config/dev.exs config :my_app, MyApp.Web.Endpoint, http: [port: 5...1 min read·alexcosmas.comSep 29, 2023
Install, Check Version, Uninstalling Phoenix CommandsInstalling Phoenix project generator. $ mix archive.install hex phx_new Installing a specific version $ mix archive.uninstall phx_new $ mix archive.install hex phx_new (VERSION) $ mix archive.install hex phx_new 1.6 $ mix archive.install hex phx_n...1 min read·alexcosmas.comSep 27, 2023
How to set up Geocoder API in Rails 7Install the Geocoder gem: gem install geocoder Create a Rails initializer file called geocoder.rb in your Rails project's config directory. In the geocoder.rb file, configure the Geocoder gem with your API key. You can get an API key from the Go...1 min read·alexcosmas.comSep 26, 2023
Error: Procfile does not exsist.I ran into the below error. I Installed foreman by running gem install foreman. Tried running bin/dev and encountered permission denied error. Switched terminals that had administrator privileges and ran the chmod +x bin/* command on my terminal ...1 min read·alexcosmas.comJun 19, 2023
Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-dbWhile trying the run my server in NextJs, I encountered the below error. Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db These following steps worked for me and I hope this help you out. Run the following comm...1 min read·alexcosmas.comOct 28, 2021