Before you start, make sure your system meets the following requirements:
Ruby
- Ruby version: 3.2.3
- Rbenv: Recommended for managing Ruby versions (rbenv)
Databases
- PostgreSQL: Required for Active Record
JavaScript and CSS
- Bootstrap: Version 5.2 or later
Templating and View
- Slim: Lightweight templating engine -Slim-Rails: Integration with Rails
File Uploads
- CarrierWave: For file uploads, including image processing
User Authentication
- Devise: User authentication solution
git clone git@github.com:kkkiikkk/smog.git
cd smogruby -vThe ouput should start with something like ruby 3.2.3
If not, install the right ruby version using rbenv (it could take a while):
rbenv install 3.2.3Using Bundler
bundlerails db:create db:migrate db:seed
rake app:migrate_imagesrails sDocker and docker compose should be installed
ssh user@IP
cd /var/www/Clone the git repository
cd smog
docker compose build
docker compose run web rails db:create db:migrate db:seed
docker compose run web rails asssets:precompile
docker compose run web rails app:migrate_images
docker compose up -d