Launch your Ruby on Rails project with the Puma web server using the command line. Then access the project from a web browser.
- [Instructor] Now, that we've created our Rails project,…we've configured it to use a database,…we're ready to launch it and view it in a browser.…Launching a Rails project…really just means telling the Puma web server…that it should boot up,…grab all the code in your Rails project,…and make it available for requests…that come in to the browser.…So, that's what we're going to do here,…and the way that we're gonna do that…is by making sure we're inside the root of our Rails project…and then from there, we're gonna type…rails space server.…We've seen this Rails command a few times.…
We used it for creating a new project,…and we used it for dumping the schema…in the last movie…where we were checking to make sure…our database connectivity was working.…Here, we're using it to launch the Rails server.…Hit return.…You'll see that by default…it's gonna launch Puma.…It tells us booting Puma.…Tells us that it's a Rail five point oh point oh application…and it tells us it's in development mode,…and we can access it at this URL…
Share this video
Embed this video
Video: Launch a project