Prototype for Agora Speakers International Portal.
https://github.com/agoraspeakers/asi-portal
This project is build with Ruby and Ruby on Rails.
Usual installation path requires:
- install MySQL/MariaDB
- install JavaScript engine like
nodejs
- install
ruby
- install
bundler
:gem install bundler
- install project dependencies:
bundle install
- in database engine create user
asi
with passwordasi
with rights to create databases - run
rails db:setup
to initialize database (rails db:migrate
to only update) - in
rails c
create admin user:User.create(name: 'Michal Papis', email: 'mpapis@gmail.com', password: 'testtest', role: 'admin', address: 'Kossaka 3/4, Gorzów, Poland')
- run
rails server
to start the application - open browser at http://localhost:3000
-
in database engine create user
asi
and databaseasi_portal_production
-
copy
config/deploy/production.rb
to new file and point to your server -
copy
config/environments/production.rb
to file name from 1. - update content -
edit
config/database.yml
andconfig/secrets.yml
- duplicatestaging
section with name from 1. -
commit and push
git
changes -
run
cap new_server check
-new_server
is the file name from 1. -
on the server in
shared/.env
set up your environment variables from local.env.example
-
deploy
cap new_server deploy
-
configure webserver to serve the site, eg:
server { passenger_enabled on; rails_env production; root /home/user/apps/asi-portal/current/public; }
- Discuss,
- Clone,
- Update,
- Open PR.
Before putting any effort into the project please discuss with other developers to avoid duplicate work or unnecessary efforts.