TIPS FOR RAILS

📝I can't delete folders inside WSL (Windows Sybsystem for Linux)
$ sudo rm -rf foo (foo is a folder name)


📝yarn install
$ yarn add @rails/webpacker


📝Your yarn packages are out of date!

Please run 'yarn install-check-files' to update.

1. Delete node_modules

$ rm -rf node_modules

2. Delete yarn.lock file

$ rm -rf yarn.lock

3. Install yarn

$ yarn install

4. Upgrade yarn

$ yarn upgrade

5. Run server

$ rails s


📝How to fix 'ActiveRecord::PendingMigrationError'

$ rails db:migrate:reset

$ rails db:rollback

$ rails db:migrate


📝Start Postgresql

$ sudo service postgresql start

📝Restart Postgresql

$ sudo service postgresql restart

No comments:

Post a Comment