Skip to content

andymilga/adminos_example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adminos Example Project

This is an example of using gem adminos.

Dependencies

  • rvm
  • ruby 2.5.1
  • rails 5.2
  • postgresql 10.x

Get started

bundle install
rails db:create db:create
rails db:create db:migrate
rails db:create db:setup
rails s
./bin/webpack-dev-server

Deployment

For painless deployment, you should configure several sudo commands for specified deploy user to be executed without asking for password via sudo visudo command, as described in https://capistranorb.com/documentation/getting-started/authentication-and-authorisation/#authorisation

Full list of sudo command could be obtained by running commands mentioned below with --dry-run option (e. g. bin/cap --dry-run {stage_name} deploy:setup

  1. Set up new deployment in config/stages/{stage_name}.rb file

  2. Set up new deployment (upload configurations):

    bin/cap {stage_name} deploy:setup

  3. Deploy new version to {stage_name}:

    bin/cap {stage_name} deploy

  4. On new deployment (or when systemd templates updated), update & enable systemd services for Puma & Sidekiq:

    bin/cap {stage_name} deploy:setup_systemd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 55.8%
  • HTML 24.5%
  • JavaScript 17.8%
  • CSS 1.7%
  • CoffeeScript 0.2%