![]() ![]() host: localhost The TCP port the server listens on. Windows does not have domain sockets, so uncomment these lines. gem 'pg' Then navigate to RAILSROOT > config > database. Omitted by default since the client uses a domain socket that doesn't need configuration. First off add the PostgreSQL Gem to your Gemfile. Now that I have a Linux virtual machine on my PC, I followed these steps to get Ruby on Rails running. Sep 2017 1 minute read 274 words Ruby The default database that comes out of the box is Sqlite3 but what if you want to use PostgreSQL This is a quick guide on how to configure your Yaml file to allow for PostgreSQL. Like you can set what commands are run when the shell opens, because this file is run everytime you open a new shell. ![]() rails new myapp create create README.md create Rakefile create create. There’s a lot more you can do in the ~/.bashrc file to customize your shell. The first argument we'll pass to the rails new command is the application name. bashrc)īasically, I commented out the default behavior and added the git branch parser so I can see what git branch I am on in the shell (if I’m in a repo folder). # THE SIX LINES BELOW are the default prompt and the unset (which were in the original. Configure the GitLab application servers with the appropriate connection details for your external PostgreSQL service in your /etc/gitlab/gitlab. Open a Windows PowerShell as an admin and run The first step was getting a Linux subsystem installed on Windows. With Rails 4.2.4 and Postgres 9.3, the following migration code worked for me: createtable :goodies do t t. In any case, I took a different approach. Then navigate to RAILSROOT > config > database.yml In here you will want to add your details for PostgreSQL. I had a lot of issues with docker on my machine, which may have come down to my own misunderstanding, or may have had to do with some similar bugs reported here or here or maybe here. New Rails application add railseventstore to your Gemfile generate config/initializers/railseventstore.rb with sane defaults and expose client under Rails. Ideally, I could have set things up as a docker container, with the steps here, but that didn’t work at all. I just spent a long time getting my Windows machine setup with Ruby on Rails and the PostgreSQL database in order to work on some software development. Aside: Getting Ubuntu Shell Looking Nice. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |