Deploy Ruby On Rails application on production AWS Ec2 server 1. Give 400 permission to pem file. sudo chmod 400 example.pem 2. Login on server. ssh -i example.pem file ubuntu@ip_address ---------------------------------------------------------------------- 3. You can check ubuntu server details by: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial ---------------------------------------------------------------------- 4. Install the required libraries: sudo apt-get update sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs yarn sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev gpg --keyserver h...
Posts
Showing posts from 2018
dmp file
- Get link
- X
- Other Apps
Dump in Import Postgres:- $ pg_dump -U root blog_development > blog_development.sql Import: $ psql -U root blog_production < blog_development.sql Dump in Import Mysql:- p -U USERNAME DBNAME > db mysqldump -u [username] -p [database name] > [database name].sql exp Dump $ mysqldump -u root -p blog_development > blog_development.sql Import: $ mysql -u root -p blog_production < blog_development.sql Map gem link:- https://www.sitepoint.com/geocoder-display-maps-and-find-places-in-rails/ link :- Getting Started - Instagram API - Documentation - Facebook for Developers Heroku Import db: heroku pg:backups:restore 'https://sisgain.com/project/healthsoul/soul.dump' DATABASE_URL Local server Import db: pg_restore --verbose --clean --no-acl --no-owner -h localhost -U root -d healthworld41_development_local ~/Downloads/pgnew.dump