Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shotaromatsuya/footle
A self-made search engine that respects google Added youtubeAPI and wikipedeiaAPI to improve search function. And, we've improved the image search experience.
https://github.com/shotaromatsuya/footle
circleci copilot mysql nginx snyk
Last synced: about 2 months ago
JSON representation
A self-made search engine that respects google Added youtubeAPI and wikipedeiaAPI to improve search function. And, we've improved the image search experience.
- Host: GitHub
- URL: https://github.com/shotaromatsuya/footle
- Owner: ShotaroMatsuya
- Created: 2020-07-30T10:10:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-21T20:32:23.000Z (about 2 months ago)
- Last Synced: 2024-11-21T21:27:59.618Z (about 2 months ago)
- Topics: circleci, copilot, mysql, nginx, snyk
- Language: PHP
- Homepage: https://footle.smat710.com/
- Size: 1.35 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/ShotaroMatsuya/footle/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/ShotaroMatsuya/footle/tree/master)
# AWS Architecture
![infrastructure](/footle.drawio.png)
# バックアップ
```bash
mysql -u [db_user] -p [db_name] > /etc/mysql/sql/dump.sql
```or
```bash
# こっちのが早い
mysqldump -u [db_user] -p[password] [db_name] > /etc/mysql/sql/dump.sql```
# リストア
```bash
mysql -u [db_user] -p [db_name] < /etc/mysql/sql/dump.sql
```# Problem
1. mysqldump で PROCESS 権限を要求される
```sql
mysql > GRANT PROCESS ON *.* TO 'your-user';
```確認
```sql
mysql > SHOW GRANTS FOR 'your-user';
```## job
```bash
./watchdog.sh 300 php job1.php
```## login
public repository への認証トークン更新
```bash
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
```ECR private repository の認証トークン更新
```bash
aws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin 528163014577.dkr.ecr.ap-northeast-1.amazonaws.com
```## app init
```bash
copilot app init footle
```## env init & deploy
```bash
copilot env init --name prod
copilot env deploy --name prod
```## secret init
```bash
copilot secret init --cli-input-yaml env/mysql.yaml
```## svc init & deploy
```bash
copilot svc init --name mysql
copilot svc deploy --name mysql --env prod
``````bash
copilot svc init --name php
copilot svc deploy --name php --env prod
```## job init & deploy
```bash
copilot job init --name crawling
copilot job deploy --name crawling --env prod
```## pipeline init & deploy
```bash
copilot pipeline init --name```
## clean up resources
```bash
copilot app delete
```