Skip to content

Instantly share code, notes, and snippets.

@mzemel
Last active April 28, 2020 23:14
Show Gist options
  • Save mzemel/24bf582861acde1de5fc7130726787f5 to your computer and use it in GitHub Desktop.
Save mzemel/24bf582861acde1de5fc7130726787f5 to your computer and use it in GitHub Desktop.
Terminal commands
cd ~/jeopardy # change to application directory (run all commands in this directory)
bundle exec rails server -b 0.0.0.0 # start application (available on host machine at localhost:3000)
git pull origin master # get latest code
bundle exec rails db:migrate # apply database migrations
bundle install # install any missing dependencies
bundle exec rails assets:precompile # build .css files
bin/webpack # build .js files
bundle exec rails console # start rails console
sqlite3 db/development.sqlite3 # start SQL console
> .headers on # add headers
> .mode column # better formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment