Skip to content

DeeKey/mentoring

 
 

Repository files navigation

mentoring

Please run locally bundle install mailcatcher https://github.com/sj26/mailcatcher: Please don't put mailcatcher into your Gemfile. It will conflict with your applications gems at some point.

Configure server: Change ip in config/provision/production if needed local - ansible-playbook --inventory=config/provision/production config/provision/provision.yml Don't forget to add it to gmail.com white list

remote - ssh root@server_ip nano ../home/mentoring/apps/mentoring_production/shared/config/environment.production Fill it with correct variables - see in TODO.txt

Deploy the app: local - don't forget to comment/uncomment last 2 lines in config/deploy.rb bundle exec cap production deploy --trace

Restore db from backup local - scp ../backups/mentoring/08.04.2018/4b943051-616c-444b-b3be-5fbf61edcfdd [email protected]:/home/mentoring/apps/mentoring_production

remote - cd ../home/mentoring/apps/mentoring_production/ sudo su postgres pg_restore -d mentoring_production 4b943051-616c-444b-b3be-5fbf61edcfdd

Get logs remote - cd ../home/mentoring/apps/mentoring_production/current/log tail -f production.log

Rails console ssh [email protected] ~/apps/mentoring_production/current$ bundle exec rails console production

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 60.6%
  • HTML 31.5%
  • Gherkin 5.4%
  • CSS 2.0%
  • Other 0.5%