Websites > Manage > Advanced (sidebar) > GIT > Generate SSH
- Copy SSH key to your favorite git orchestrator
- Create a new repository on Hostinger
- Repository: Git repository SSH URL
- Branch: Name of the branch you want to copy
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
import dotenv from 'dotenv'; | |
dotenv.config(); | |
const params = { | |
username: process.env.DATABASE_USERNAME, | |
password: process.env.PASSWORD, | |
host: process.env.HOST, | |
port: process.env.PORT, | |
databaseName: process.env.DATABASENAME, |
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
include .env.local | |
project_name=${PROJECT_NAME} | |
apache: | |
docker exec -it ${PROJECT_NAME}_apache bash | |
php: | |
docker exec -it ${PROJECT_NAME}_php bash | |
db: |
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":1,"resource":"file:///Users/mushu/development/personal/tuto-symfony-lior-docker/.gitignore","entries":[{"id":"rG2a","timestamp":1660652029008}]} |
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
# sudo nano ~/.bash_aliases | |
# sudo nano ~./bashrc | |
# source ~/.bashrc | |
# For macOs | |
# nano ~/.bash_profile | |
# source ~/.zshrc | |
# source ~/.bashrc |
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
127.0.0.1 mywebsite.lan | |
::1 mywebsite.lan | |
127.0.0.1 example.lan | |
::1 example.lan |
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
<?php | |
/** | |
* Paiement | |
* | |
* Prix TTC = Prix HT + TVA | |
* Prix HT = Prix TTC / (1 + taux de TVA) | |
* | |
* total_paid = Prix TTC | |
* total_paid_tax_incl = Prix TTC |
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
<?php | |
class ClassController extends Controller | |
{ | |
public function list_professions(Request $request) | |
{ | |
$em = $this->container->get('doctrine')->getManager(); | |
$type = $request->request->get('type'); | |
$profession_libelle = $request->request->get('profession_libelle'); |
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
# Deny access to filenames starting with dot(.) | |
<FilesMatch "^\."> | |
Order allow,deny | |
Deny from all | |
</FilesMatch> |
NewerOlder