LinuxCommandLibrary

rails

rails

TLDR

Create a new rails project

$ rails new "[project_name]"
copy


Start local server for current project on port 3000
$ rails server
copy


Start local server for current project on a specified port
$ rails server -p "[port]"
copy


Open console to interact with application from command-line
$ rails console
copy


Check current version of rails
$ rails --version
copy

Copied to clipboard