Skip to main content

Posts

Twitter Omiauth error "OAuth::Unauthorized (403 Forbidden)" with rails

Twitter Omiauth error "OAuth::Unauthorized (403 Forbidden)" with rails? Need to add two callback URLs

http://WEBSITEURL/auth/twitter/callback -> http://localhost:3000/auth/twitter/callbackhttp://WEBSITEURL -> http://localhost:3000
Recent posts

Error malloc(): memory corruption nginx with passenger?

Error malloc(): memory corruption nginx with passenger
Passenger issue resolving steps :
 sudo gem uninstall passenger(uninstall all passenger)sudo gem install passengersudo passenger-install-nginx-module --auto --auto-download --prefix=/opt/nginx --extra-configure-flags=noneUpdate nginx config file with new passenger version and restart the nginx

Angular2 Installing main plugins using angular cli steps?

Angular2 Installing main plugins using angular cli steps?
1)npm i -D @angular-devkit/core
2)npm install jquery --save (or) npm install bootstrap@3 jquery --save
3)npm install -D @types/jquery
4)npm install font-awesome --save
5) npm install moment --save
6)npm install --save angular2-daterangepicker (Not there from source download) -> http://www.daterangepicker.com/#config
7)https://www.npmjs.com/package/ng2-highcharts
 i)npm install --save highcharts@^4.2.1
 ii)npm install @types/highcharts --save
 iii)npm install --save ng2-highcharts
8)npm install ngx-pagination --save(https://github.com/michaelbromley/ngx-pagination)
9)npm install -D @types/bootstrap
10)npm install --save @types/daterangepicker

How to deploy angular2 with Apache server ?

How to deploy angular2 with Apache server  and angular cli?
ng build --prodIt will create dist folder in the applicationCopy the dist folder all files to /var/www/html/Create .htaccess file in the path of /var/www/html/Write this code   in .htaccess file<IfModule mod_rewrite.c>  RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f  RewriteCond %{REQUEST_FILENAME} !-d  RewriteRule . /index.html [L]</IfModule>sudo service apache2 restart


Ruby on Rails Setup for nginx with Passenger

Ruby on Rails Setup for nginx with Passenger?

Ruby Installation Note: Ruby installtion done from source 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 Download ruby which version needed wget http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz tar -xzvf ruby-2.2.2.tar.gz cd ruby-2.2.2/ ./configure sudo make install ruby -v --> Check the which ruby version installed
Rails Installation gem install rails -v 4.2.3
Nginx with Passenger Installation
gem install passenger sudo passenger-install-nginx-module sudo service nginx start
if error “nginx: unrecognized service” # Download nginx startup script wget -O init-deb.sh https://www.linode.com/docs/assets/660-init-deb.sh sudo mv init-deb.sh /etc/init.d/nginx sudo chmod +x /etc/init.d/nginx
Installing MYSQL sudo apt-get install mysql-server mysql-client libmysqlclient-de…