Hi Sinu,
These are the steps to move the existing canvas application to a new server
1. Take the Database dump and grants dump. Then put it in the new Database in new server. Make sure that the grants are provided for the correct server IP
2. Create a zip file with the canvas folder (this must contain all files including tmp, uploads,log etc). Move it to the new server
3. Move the copied zip file to the httpd folder and unzip it.
4. Make sure that the symlinks are proper (if have symlinks)
5. Back up the GemFile.lock and run the bundle install command => bundle install --path vendor/bundle
6. compile the contents with => RAILS_ENV=production bundle exec rake canvas:compile_assets command
7. Go to the conf file for httpd. Normally it will be in /etc/httpd/conf.d. Make a file called canvas.conf and add the virtual host settings with the document root details etc.
8. Edit the canvas/config/domain.yml file to change the domain name
9. Change the DNS entry curresponting to the old url and point to the new url.
10 Restart httpd service and try to get the application from the browser.
OR,
you can try upgrading the code.
For that,
1. move the Database , tmp/files folder and uploads folder to the new server.
2. Checkout the latest code from git and copy the tmp/files and uploads folder to the appropreate place
3. Edit the config files and add the database details, domain name details , outgoing mail detals etc.
4. run the bundle install command => bundle install --path vendor/bundle
5. run database migration script - RAILS_ENV=production bundle exec rake db:migrate
6. Edit the httpd conf files and add the document root
7. compile assets
Now try to open the application from a browser.
Hope this will help you to solve the issue