try to deploy en nas
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
APP_KEY=Z_CbQqpIxo4bGJ0WpqZkB3HoaLXvHf0J
|
||||
APP_URL=http://192.168.1.39:3333
|
||||
DB_PASSWORD=pcbuilder_secure_pass
|
||||
DB_DATABASE=pc_builder
|
||||
DB_USER=pcbuilder
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
MYSQL_CONTAINER=$(docker ps -q --filter ancestor=mysql:8 | head -1)
|
||||
if [ -z "$MYSQL_CONTAINER" ]; then
|
||||
echo "❌ MySQL container not found"
|
||||
exit 1
|
||||
fi
|
||||
echo "MySQL container: $MYSQL_CONTAINER"
|
||||
docker exec "$MYSQL_CONTAINER" mysql -u root -pnpm_root_password -e "
|
||||
CREATE DATABASE IF NOT EXISTS pc_builder;
|
||||
CREATE USER IF NOT EXISTS 'pcbuilder'@'%' IDENTIFIED BY 'pcbuilder_secure_pass';
|
||||
GRANT ALL PRIVILEGES ON pc_builder.* TO 'pcbuilder'@'%';
|
||||
FLUSH PRIVILEGES;
|
||||
"
|
||||
echo "✅ Database pc_builder created"
|
||||
Reference in New Issue
Block a user