From the root user
$ adduser deploy
$ adduser deploy sudo
$ exit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## canmore | |
| // # The `canmore` tool creates and updates text documents that render to the user on a space next to the conversation (referred to as the "canvas"). | |
| // Lean towards NOT using `canmore` if the content can be effectively presented in the conversation. Creating content with `canmore` can be unsettling for users as it changes the UI. | |
| // ## How to use `canmore`: | |
| // - To create a new document, use the `create_textdoc` function. Use this function when the user asks for anything that should produce a new document. Also use this when deriving a new document from an existing one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ruby CircleCI 2.0 configuration file | |
| # | |
| # Check https://circleci.com/docs/2.0/language-ruby/ for more details | |
| defaults: &defaults | |
| working_directory: ~/split_app | |
| parallelism: 2 | |
| docker: | |
| - image: circleci/ruby:2.5.0-node-browsers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'capistrano/scm/plugin' | |
| class Capistrano::SCM | |
| # Usage: Add this to your `Capfile`: | |
| # | |
| # require_relative "lib/capistrano_rsync" # adapt path as needed | |
| # install_plugin Capistrano::SCM::Rsync | |
| # | |
| # Note that this you need to deactivate any other SCM plugins (there can only be one SCM plugin active at any time)- | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sidekiq/api' | |
| # 1. Clear retry set | |
| Sidekiq::RetrySet.new.clear | |
| # 2. Clear scheduled jobs | |
| Sidekiq::ScheduledSet.new.clear |
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'graphql' | |
| require 'neo4j' | |
| neo4j_url = ENV['NEO4J_URL'] || 'http://localhost:7474' | |
| session = Neo4j::Session.open(:server_db, neo4j_url) | |
| class Author | |
| include Neo4j::ActiveNode | |
| id_property :id_author |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: java:8-jdk | |
| stages: | |
| - build | |
| - test | |
| - deploy | |
| before_script: | |
| # - echo `pwd` # debug | |
| # - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A commented nginx configuration file for Ruby on Rails | |
| # | |
| # Author: Tommaso Pavese | |
| # tommaso@pavese.me | |
| # http://tommaso.pavese.me | |
| # | |
| # License: http://www.wtfpl.net/ | |
| # | |
| # | |
| # Tested with: |
NewerOlder