- Create postgres user qualifier. Give it superuser.
- Create databases qualifier_development and qualifier_test, having given grant all privileges to the qualifier user
- Unless you provide your own DATABASE_URL and TEST_DATABASE_URL, you need the server running at 5433
- install clamav (update freshclam db, create directories (chmod 777) and make your user the owner of directories
run clamd
- Set up redis
rails db:seed
Run full test suite: bundle exec rails test
Tests will fail when adding new images. In webpacker.yml, change test.compile
to true
for one run to compile the manifest, then change it back to false
for faster testing.
http://localhost:3000/session/log_in_in_development
http://localhost:3000/session/new_funnel_user
CRM
- nightly (most often) harvesting of CRM:sDataImport
- this modules handles incoming scraped data. Normalization of data and creation of necessary recordsDataImport::ImportProspect
- Creates the necessaryProspect
s,Company
s,BotsProspect
s etc. CallsFindEmailAddresses
if necessary
FindEmailAddresses
- Uses a variety of ways and sources to generate, validate and createEmailAddress
es for prospects.Inbox
- crawls our users' inboxes for responses and bounces, marking them accordinglyReachable
- determines whether a prospect is contactable (for a first email, or a follow-up) dependingSendEmails
- handles application of templates, creation of email bodies and in the end the actual sending of the emails
- Github - code and issues
- Bug tracking Bugsnag https://app.bugsnag.com/qualifier/rails/errors?filters[event.since][0]=30d&filters[error.status][0]=open&sort=last_seen - joakim@qualifier.ai:bugsnagqlfr123
- CI: CircleCi https://circleci.com/gh/qualifierai/qualifierai/tree/master - your github access to the repo should give you access to our repo at Circle
- Downtime reporting: UptimeRobot
- DB (10.63.0.205) - Google Cloud SQL - Postgres
- Sidekiq persistent Redis (10.0.0.36) - Google Memorystore
- App (35.204.88.17) - Google Compute Engine (puma and cache redis)
- Sidekiq (35.214.238.12) - Google Compute Engine (sidekiq)
On the app server, we run puma and a redis instance for caching
Sidekiq dashboard: https://qualifier.ai/sidekiq
qf
- navigate to the current production folderrc
- start a production rails console (doesn't require being in the right folder)
/var/www/qualifier/shared/log
contains rails and puma logs
- etc:
/etc/nginx/
- logs:
/var/log/nginx
- Install locally ex
rbenv install 3.2.0
- Update in Gemfile
- Update in .ruby-version
- Update in config/deploy.rb
- Update in .circleci/config.yml
- Install on Sidekiq and app server:
rbenv global 3.2-jemalloc
sudo apt install fullstaq-ruby-3.2-jemalloc