Simple script to setup a ramdisk for development purposes. macOS only at the moment but can be easily updated to work on Linux.
What we have below isn’t new. I’ve taken what I found in this blog post and created a bash script which I can run after each reboot (there is also a teardown script).
Copy the mysql-ramdisk-config.sh.example
file to mysql-ramdisk-config.sh
and update if required.
Run the script from your project (this is required to run the commands in ENVIRONMENT_SETUP_COMMANDS).
neil | ~/src/myrailsproject (master) $ ls -1 ../mysql-ramdisk-helper
LICENSE
README.md
mysql-ramdisk-config.sh
mysql-ramdisk-config.sh.example
mysql-ramdisk-setup.sh
mysql-ramdisk-teardown.sh
neil | ~/src/myrailsproject (master) $ ../mysql-ramdisk-helper/mysql-ramdisk-setup.sh
See my blog post.