To install PostgreSQL on Ubuntu 22.04, follow these steps:
Update the package manager's package list by running the following command:
sudo apt update
Install the PostgreSQL package by running the following command:
sudo apt install postgresql
To install PostgreSQL on Ubuntu 22.04, follow these steps:
Update the package manager's package list by running the following command:
sudo apt update
Install the PostgreSQL package by running the following command:
sudo apt install postgresql
Install software-properties-common
sudo apt-get install software-properties-common
Add Repo
sudo add-apt-repository ppa:olipo186/git-auto-deploy
upstream app { | |
# Path to Puma SOCK file, as defined previously | |
server unix:/home/deployer/fastfood/shared/tmp/sockets/puma.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
root /home/deployer/fastfood/current/public; |
Nginx (/etc/nginx) totally remove kore only Openresty dia server run kora jabe ?
certificate gula create hoe tar location koi ?( /etc/resty-auto-ssl folder e certificate khuje pai na)
current status of my server config https://gist.github.com/mezbahalam/ad4ff7450cecbd0239d44f26a025c874
folder structure & .conf file er kono best practice ase ?
custom certificate kivabe generate kore ?
## /etc/openresty/nginx.conf | |
user www-data; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
lua_shared_dict auto_ssl 1m; |
## /etc/openresty/nginx.conf | |
user www-data; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
lua_shared_dict auto_ssl 1m; | |
lua_shared_dict auto_ssl_settings 64k; |
Install RabbitMq on Ubuntu 18
sudo apt-get update
sudo apt-get install erlang
sudo apt-get install rabbitmq-server
sudo systemctl enable rabbitmq-server
sudo systemctl start rabbitmq-server
sudo systemctl status rabbitmq-server
sudo rabbitmq-plugins enable rabbitmq_management
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
require 'rails_helper' | |
RSpec.describe TodosController, :type => :controller do | |
describe "GET #index" do | |
#describe "POST #create" do | |
#describe "GET #show" do | |
#describe "PATCH #update" do (or PUT #update) | |
#describe "DELETE #destroy" do | |
#describe "GET #new" do |
#!/bin/bash | |
# Stop all containers | |
docker stop $(docker ps -a -q) | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) | |
# Delete all volume / data | |
docker volume rm $(docker volume ls -q) |