-
ruby 2.7.1
-
Rails 6.0.3
-
Global configuration on
config/application.yml
-
Tokens & Passwords on User's Database
RAILS_ENV
define the environment (dev / production)
DB configuration in config/database.yml
- export .env.{dev,production} and
rails db:prepare
yarn install --check-files
bundle
rspec spec/models/*
export $(grep -v '^#' .env.dev | xargs ) && rails console
u=User.where(:email => 'email@domain.tld').first
u.superadmin_role=1
u.save
=# UPDATE users SET superadmin_role = True WHERE email='email@domain.tld';
sudo apt install zlib1g-dev libpq-dev
In Dev :
make {assets,migrate,dev}
In Prod :
docker-compose up -d # After edit docker-compose.yml
docker-compose exec web bundle exec rails db:prepare
Netbox VM's need to have 4 custom_fields :
-
terraformable
(bool) -
proxmoxvmid
(int) -
proxmoxnode
(string) -
proxmoxpool
(string)