Fall 2024 FashioNXT-CastNXT Heroku deployment information: https://castnxtfall2024-a6422e600193.herokuapp.com/
Fall 2024 FashioNXT-CastNXT Code Climate Report: https://codeclimate.com/github/shweta-kumaran/CastNXTfall24
Fall 2024 FashionNXT-CastNXT Github Projects: https://github.com/users/shweta-kumaran/projects/2
NOTIFICATION(!): All the debugging report, issue report, erratum report for the found and reported mistakes, issues, bugs and many other related issues will be reported in the corresponding debugging_report.txt file.
Fall 2024 CastNXT Team
===================================================================================================
Prerequisites: mongodb:https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/ \ create a mongodb admin user
>use admin;
>db.createUser(
{
user: "root",
pwd: "example",
roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
}
)
// The username and password should match the definition in `config/mongoid.yml`
Clone -> Go to directory with CASTNXT project
/bin/bash --login
rvm install “ruby-2.6.6”
bundle install
npm install -g npm@8.5.4
nvm install --lts
npm install -g yarn
bundle exec rails webpacker:install
Then Run your mongodb service (Different platform has different cmd lines)
Finally
rails db:migrate RAILS_ENV=development
rails s -p $PORT -b $IP
Heroku Build takes a lot of space right now. Upgrade volume to >=15GB.
Clone -> Go to directory with CASTNXT project
heroku login -i
heroku container:login
heroku create castnxtfall24
heroku container:login
heroku container:push web -a castnxtfall24
heroku container:release web -a castnxtfall24
heroku logs --tail -a castnxtfall24
Check if your Gemfile has gem "pg"
Run,
bundle install
Now, navigate to your app from the heroku dashboard
Click on "More" (Top-Right corner, next to 'Open App')
Click on "Run console"
On the command prompt, run the command:
rails db:migrate
Now, try opening the app.
Problem: Webpacker::Manifest::MissingEntryError
Solution: bundle exec rake assets
Problem: Your Ruby version is X, but your Gemfile specified Y
Solution: rvm use Y
Problem: Warning! PATH is not properly set up, /home/user/.rvm/gems/ruby-3.1.2/bin is not at first place.
rvm implode reinstall rvm using https://github.com/rvm/ubuntu_rvm