This workshop will be retired on May 1, 2025.
Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Lastly, we need to set up PostgreSQL on our production server, and set our Rails app up to use it.
You can test this out either on an actual Ubuntu Linux server at your web hosting company, or you can use a virtual machine.
Connect to your server via SSH, and run:
sudo apt-get install postgresql libpq-dev
sudo -u postgres createuser --superuser deploy
cd /PATH/TO/YOUR/guestbook
git pull
bundle install
RAILS_ENV=production bin/rails db:setup
RAILS_ENV=production bin/rails server
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up