| Status Code | Status Message | Symbol |
|---|---|---|
| 100 | Continue | :continue |
| 101 | Switching Protocols | :switching_protocols |
| 102 | Processing | :processing |
| Status Code | Status Message | Symbol |
|---|
| -- | |
| -- Change database owner | |
| -- | |
| ALTER DATABASE "db_name" OWNER TO user; | |
| -- | |
| -- List schemas | |
| -- |
| proxy_cache_path /var/nginx/cache levels=1:2 keys_zone=blog_cache:1m max_size=100m inactive=60m use_temp_path=off; | |
| server{ | |
| listen 80; | |
| server_name example.com; | |
| # prevent forwarding of cookies | |
| proxy_set_header Cookie ""; | |
| # prevent passing of WP cookie back to client |
| FROM ruby:2.4-alpine3.7 | |
| # Install dependencies: | |
| # - build-base: To ensure certain gems can be compiled | |
| # - nodejs: Compile assets | |
| # - postgresql-dev postgresql-client: Communicate with postgres through the postgres gem | |
| # - libxslt-dev libxml2-dev: Nokogiri native dependencies | |
| # - imagemagick: for image processing | |
| RUN apk --update add build-base nodejs tzdata postgresql-dev postgresql-client libxslt-dev libxml2-dev imagemagick |
| [Unit] | |
| Description=Puma Rails Server | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=deploy | |
| WorkingDirectory=/home/deploy/app/current | |
| ExecStart=/home/deploy/.rbenv/bin/rbenv exec bundle exec puma -C /home/deploy/app/shared/config/puma.rb | |
| ExecStop=/home/deploy/.rbenv/bin/rbenv exec bundle exec pumactl -S /home/deploy/app/shared/tmp/pids/puma.state stop |
| .git | |
| .gitignore | |
| /doc | |
| .yardoc | |
| coverage | |
| jsdoc | |
| /tmp | |
| /log | |
| Dockerfile | |
| Dockerfile.prod |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| ######################### | |
| # config/initializers/doorkeeper.rb | |
| ######################### | |
| Doorkeeper.configure do | |
| # Change the ORM that doorkeeper will use. | |
| # Currently supported options are :active_record, :mongoid2, :mongoid3, :mongo_mapper | |
| orm :active_record | |
| # This block will be called to check whether the resource owner is authenticated or not. |