2021-08-20 15:05:00 -04:00
|
|
|
bundle install
|
|
|
|
yarn install
|
|
|
|
|
2021-10-14 12:46:13 -04:00
|
|
|
sudo chown -R vscode:vscode /usr/local/bundle
|
2021-10-12 18:16:38 -04:00
|
|
|
|
2021-08-20 15:05:00 -04:00
|
|
|
sudo service postgresql start
|
2021-09-21 17:04:43 -04:00
|
|
|
sudo service mariadb start
|
2021-08-20 15:05:00 -04:00
|
|
|
sudo service redis-server start
|
|
|
|
sudo service memcached start
|
|
|
|
|
|
|
|
# Create PostgreSQL users and databases
|
|
|
|
sudo su postgres -c "createuser --superuser vscode"
|
|
|
|
sudo su postgres -c "createdb -O vscode -E UTF8 -T template0 activerecord_unittest"
|
|
|
|
sudo su postgres -c "createdb -O vscode -E UTF8 -T template0 activerecord_unittest2"
|
|
|
|
|
|
|
|
# Create MySQL database and databases
|
|
|
|
MYSQL_PWD=root sudo mysql -uroot <<SQL
|
|
|
|
CREATE USER 'rails'@'localhost';
|
|
|
|
CREATE DATABASE activerecord_unittest DEFAULT CHARACTER SET utf8mb4;
|
|
|
|
CREATE DATABASE activerecord_unittest2 DEFAULT CHARACTER SET utf8mb4;
|
|
|
|
GRANT ALL PRIVILEGES ON activerecord_unittest.* to 'rails'@'localhost';
|
|
|
|
GRANT ALL PRIVILEGES ON activerecord_unittest2.* to 'rails'@'localhost';
|
|
|
|
GRANT ALL PRIVILEGES ON inexistent_activerecord_unittest.* to 'rails'@'localhost';
|
|
|
|
SQL
|