- Run
gem install dip
. - In the root project folder, run
dip provision
. This sets up the project and starts the server.- Run dip rails s to start the container.
- Go to
localhost:3000/users
, create a new user, and add an image.
note: Manual is used for setup Active Storage
- Open container:
dip runner
- Add ActiveStorage:
bin/rails active_storage:install
andbin/rails db:migrate
- Generate user scaffold
- Add User attachment(on line app/models/user.rb:2)
- Be sure that corresponding libs are on machine(on line .dockerdev/Aptfile:5)
- Additional configuration on lines:
- config/application.rb:13
- config/environments/development.rb:71