emendate project setup
Project Setup Emendate :: 1 nov 2022
...................................................................................................................................................................................................................... ................................... ............
0. Install jruby 9.2.7.0
sudo apt install jruby -- jruby 1.7.22 version is installed.
rvm install "jruby-9.2.7.0"
rvm use "jruby-9.2.7.0"
1. Download and Extract Zip file
2. Import the sql file – copy paste old sql file in the zip folder
in the main root folder and run the command --
psql -U postgres `database_name` < sqlfilename
psql -U postgres chingchingbyakon_dev1 < local_data_25_05_2022.sql
3. Change the names in database.yml -
username change
userpassword change
database name change
4. rake db:create
5. rake db:migrate - was error after some migratrions
6. first run the project at the branch master
7. second run the proejct at the branch new_task switched to this branch from
master (diff procedure see the old docs s)
8. Check with run localhost:3000
9. Note :: byebug will not use - bindng.pry will be use instead of byebug
10. if requirement of application.yml is used then do it .
11. Will give an error in rake db:create – then run these commands again --
gem install bundler
gem update –system
bundle update –bundler
bundle
rake db:create
12. note::
database.yml and application.yml file config ke andar hoti hai
sql file root folder ke andar hoti hai
Comments
Post a Comment