Skip to main content

Posts

Featured

Deploy your website to DigitalOcean (part-3)

Hi, Today I'll continue talking about deploying to Digital Ocean. So far, I told you about uploading your files to the server. Today, I'll tell you how to set the database and some basic commands you need. Note: I am using rails application as an example in the following steps. 4- Setup Database: Make sure that you set the production part in "config/database.yml" like this: adapter: mysql2 database: rails username: rails password: password_in_ credentials _email Then upload the file (publish -> upload as in previous part) Open your command line and login to the server using the credentials sent to you earlier by Digital Ocean using this command: ssh root@xxx.xxx.xx.xx  (where "xxx.xxx.xx.xx" is the IP address found in the credentials email) Change to the directory contains your code "/home/rails" using this command: cd /home/rails Setup database using the following commands: RAILS_ENV=production rake db:crea

Latest Posts

Deploy your website to DigitalOcean (part-2)

Deploy your website to DigitalOcean (part-1)

jquery-ui-map

Style Google Maps

El72ny

Using Bing Search API

Wireshark

Join Us SFD 2011 @ Alexandria University

Software Freedom Day @ Alexandria University 2011

Share internet connection