After installing Elixir 0.14.1 and the Phoenix web framework then launching the web server I am unable to preview the web site. Does anyone know how to get this working?
Elixir Phoenix web server cannot be previewed on Nitrous.io
644 Views Asked by user1031420 At
1
There are 1 best solutions below
Related Questions in ERLANG
- erlang os:cmd() command with UTF8 binary
- Erlang syntax error unclear
- How to index a field with mongodb-erlang
- Erlang Dialyzer: only accept certain integers?
- Erlang spawning large amounts of C processes
- erlang processes and message passing architecture
- Mnesia pagination with fragmented table
- Does Erlang Have Map?
- First word of binary string erlang
- Elixir exrm release crashes on eredis start_link
- Erlang: Returning a function from a function
- How to index existing not-indexed data in riak search?
- Why do I receive a FunctionClauseError ("no function clause matching") in this Elixir program, translated from Erlang?
- How to list all the bucket types in riak?
- oauth2 authentication support in ejabberd
Related Questions in ELIXIR
- Multiline comment in Elixir
- Output tabular data with IO.ANSI
- Does Elixir have coding standards or an authoritative style guide published by the language developers, like PEP8 or the Erlang Programming Rules?
- Check if a URL is valid in elixir
- Elixir exrm release crashes on eredis start_link
- Writing a library that works for BitStrings or Lists
- Elixir exrm console works but application does not start automatically
- Why do I receive a FunctionClauseError ("no function clause matching") in this Elixir program, translated from Erlang?
- Expect-like functionality to IO.gets?
- How to stub (or prevent running) of a call to a worker in my ExUnit test?
- Is Elixir's System.cmd blocking
- Elixir - Nested JSON parsing to structs
- What is the number that shows up after you define an anonymous function in elixir?
- Using System.cmd within a Poolboy worker (gen_server) causes silent failure
- How Can We Clear the Screen in Iex on Windows
Related Questions in PHOENIX-FRAMEWORK
- How to stub (or prevent running) of a call to a worker in my ExUnit test?
- Using System.cmd within a Poolboy worker (gen_server) causes silent failure
- Rails' before_filter equivalent in Phoenix
- How to Log something in Controller when Phoenix Server is running?
- Select Field in Phoenix Templates
- How to delete a Phoenix Session?
- Plug.Conn.assign not working when called from a Pipeline Plug
- Where can I put my Plugs and then use them from different controllers in my Phoenix app?
- How to get a variable value from Environment files in Phoenix?
- full text search for phoenix framework
- Print the record count using Phoenix/Ecto from the terminal
- In a Phoenix application, what is the difference between the :port key of the :http and :url configurations?
- Elixir/Phoenix multiple applications on same machine
- Using Elixir Plug.conn.assigns in multiple modules
- How to populate a database in Phoenix/Elixir on a server?
Related Questions in NITROUS
- Using Rails Composer, getting error "-bash: rails: command not found" using "learn-rails" gemset
- Memory problems with meteor app on nitrous.io
- html/css autocomplete in Nitrous.io
- websocket connect to Nitrous.io but break automatically after 1 minute
- Elixir Phoenix web server cannot be previewed on Nitrous.io
- Installing package dependencies on nitrous.io (Meteor's Android SDK)
- How to create an inventory of a Meteor environment
- Why is my node.js helloworld application on nitrous not working?
- Installing pymongo on a nitrous.io box
- Nitrous, Heroku: create new PostgreSQL user, restrict privileges
- Installing all packages from existing Meteor project into new project
- Meteor app Development
- git push heroku master not working
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Nitrous currently does not have explicit support for Elixir boxes so you have to create a box using any of the supported services (i.e. Ruby on Rails). Then you can use Autoparts:Uninstall to remove the unneeded parts and Autoparts:Install to add Elixir (currently there is an Elixir 0.14.1 part which shows up if you search).
Once Elixir is installed, open up a Nitrous console and install the latest Phoenix framework by cloning from github as documented by the README.md on the phoenixframework github site.
Create a Phoenix application in the console from the phoenix root directory, as described in the README.md. In the discussion below we assume the phoenix app is named ws.
The Nitrous IDE preview feature requires that the webserver runs on 0.0.0.0 using port 3000 (other ports are also supported) with ssl turned off. To do this, modify /lib/ws/config/prod.ex to look like:
Note that we're modifying the production configuration. You may decide do use the dev.ex or config.ex configuration as well/instead. To start the server from within the Nitrous console, make sure you are in the application's root directory then enter:
MIX_ENV=prod mix phoenix.start
to start the server. You should now be able to preview the resulting site from within the Nitrous IDE using the Preview:Port 3000.