- "git" things to know
- create app's git repo
- create fork repo
- create feature branch
- send, approve and accept merge request
- git tags, prepare release script.
- push release to HEAD branch, e.g version-13, version-12, etc.
- docker
This file contains 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
redis_cache: redis-server config/redis_cache.conf | |
redis_socketio: redis-server config/redis_socketio.conf | |
redis_queue: redis-server config/redis_queue.conf | |
web: bench serve --port 8000 | |
socketio: /usr/bin/node apps/frappe/socketio.js | |
custom_app: /usr/bin/node apps/custom_app/custom_node.js | |
watch: bench watch | |
schedule: bench schedule | |
worker_short: bench worker --queue short |
This file contains 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
location / { | |
rewrite ^(.+)/$ $1 permanent; | |
rewrite ^(.+)/index\.html$ $1 permanent; | |
rewrite ^(.+)\.html$ $1 permanent; | |
# Allow CORS for static files | |
add_header Access-Control-Allow-Origin $cors_origin; | |
add_header Access-Control-Allow-Methods "GET, OPTIONS"; | |
location ~* ^/files/.*.(htm|html|svg|xml) { |
Updated version here https://github.com/castlecraft/custom_containers/blob/main/docs/docker-swarm.md
Follow these steps:
Install prerequisites:
apt-get update && apt-get dist-upgrade -y
dpkg-reconfigure --priority=low unattended-upgrades
adduser -D craft
This file contains 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
{ | |
"guestFunctions": [ | |
"erpnext.www.book_appointment.verify.index.get_context(context)", | |
"erpnext.www.book_appointment.index.get_appointment_settings()", | |
"erpnext.www.book_appointment.index.get_timezones()", | |
"erpnext.www.book_appointment.index.get_appointment_slots(date, timezone)", | |
"erpnext.www.book_appointment.index.create_appointment(date, time, tz, contact)", | |
"erpnext.templates.utils.send_message(subject='Website Query', message='', sender='', status='Open')", | |
"erpnext.templates.pages.search_help.get_help_results_sections(text)", | |
"erpnext.templates.pages.product_search.get_product_list(search=None, start=0, limit=12)", |
This file contains 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
# https://github.com/frappe/frappe/blob/develop/frappe/email/smtp.py | |
import smtplib | |
class SMTPServer: | |
def __init__( | |
self, | |
server, | |
login=None, | |
password=None, |
- EKS Fargate profiles for
<fargate-profile-namespace>
. Guide - EKS Fargate coredns profile for coredns pods to run (create profile for
kube-system
namespace, refer guide from previous step) - EFS CSI Driver installed, mount points set and pv.yaml created. Refer Guide
- EKS ALB Controller, refer Guide.
Refer Helm Installation to install helm command
This file contains 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
def terminal_websocket(name: str, namespace: str, command: list[str], container: str = None): | |
load_config() | |
core_v1_api = client.CoreV1Api() | |
resp = stream( | |
core_v1_api.connect_get_namespaced_pod_exec, | |
name=name, | |
namespace=namespace, | |
container=container, | |
command=command, | |
stderr=True, |
NewerOlder