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
version: '3' | |
services: | |
db: | |
container_name: wp-mysql | |
image: mysql:5.7 | |
volumes: | |
- $PWD/data:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: 12345678 |
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
image: node:10 | |
stages: | |
- build | |
- test | |
- deploy review | |
- deploy staging | |
- deploy production | |
- production tests |
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
hash=$(git log --format="%h" -n 1) |
Some Hints and help:-
-
You have to create a config setting for your target database on database.yml
-
or you can create conditional connection in database.yml example:- https://medium.com/productboard-engineering/setting-up-rspec-and-databasecleaner-to-support-multiple-databases-c42bfe251112
-
You can tag your specs https://rubyyagi.com/run-specific-tests-on-rspec-using-tag/ to run when tag is passed (say target database)
-
Establish db connection based on ENV variable
type Employee string
const (
Manager Employee = "manager"
Developer Employee = "Developer"
Tester Employee = "Tester"
)
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
Designing a database schema for an online merch store involves identifying the entities and their relationships. Here's a basic schema to get you started: | |
Entities: | |
Users/Customer: Information about the store's customers. | |
UserID (Primary Key) | |
Username | |
Password (hashed) |