Skip to content

CSCE-606-Event360/CastNXTs24

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring 2024 Information

Spring 2024 FashioNXT-CastNXT Heroku deployment information: https://castnxtspring.herokuapp.com;

Sprint 2024 FashioNXT-CastNXT Code Climate Report: https://codeclimate.com/github/CSCE-606-Event360/CastNXTs24.

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.

Spring 2024 CastNXT Team

===================================================================================================

Steps for Local:

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 web/CASTNXT

/bin/blash --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

Steps for Heroku:

Heroku Build takes a lot of space right now. Upgrade volume to >=15GB.

Clone -> Go to web/CASTNXT

Create heroku project (unnecessary)

heroku login -i
heroku container:login
heroku create -a castnxtspring

Build repo into container and deploy to heroku

heroku container:login
heroku container:push web -a castnxtspring
heroku container:release web -a castnxtspring

Tail the logs:

heroku logs --tail -a castnxtspring

Note: If you notice that your app run into an Application Error.

  1. Check your Gemfile.
    Check if your Gemfile has gem "pg"
  1. Run,
    bundle install
  1. Now, navigate to your app from the heroku dashboard

  2. Click on "More" (Top-Right corner, next to 'Open App')

  3. Click on "Run console"

  4. On the command prompt, run the command:

    rails db:migrate
  1. Now, try opening the app.

Common Errors:

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 11