CSC-322 Curricular Planning
Authors
- Jonathan Ackmann
- Marija Ivica
- Alex Mitchell
- Otabek Nazarov
- Prabir Pradhan
- Corey Simmonds
System Dependencies
Depending on your platform, you will acquire these packages in different ways. You should consult the documentation for your operating system to determine the proper way to install these programs.
ruby
2.3rails
4.1gem
2.5bundler
1.14- This can be installed via
gem
as follows:gem install bundler
- This can be installed via
Basic Environment Initialization
- Ensure all above system dependencies are installed
- Clone this repository.
cd
into the repositorybundle install
to install Gem dependenciesrails s
to start server
Additional Development Environment Configuration
Issues During Development
- Rails Error: "action controller doesn't recognize term input"
- Run
rake db:drop db:create db:migrate
- Run
Additional Production Environment Configuration
- By default, Rails will listen on port 3000.
- Use
ModProxy
on Apache or similar to forward traffic from existing infrastructure or - If you wish to automatically serve from another port
edit line
default_options_alias.merge!(:Port => 3000)
in/config/boot.rb
to specify which port the website should be hosted on
- Use
- Configure mailer subsystem for user email confirmation:
- in
/config/environments/development.rb
remove:
config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = {:address => "localhost", :port => 1025}
- in
/config/environments/production.rb
add:
config.action_mailer.default_url_options = {:host => 'yourdomain.com'} config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "127.0.0.1", :port => 25, :domain => 'yourdomain.com' }
- in