Open eppak opened 3 years ago
Note: when deploy a domain crontabs and workers must be queued for deploy.
@eppak I started a vm ubuntu 20 on aws platform. i followed the ufficial documentation and i tried to start a sito1.com domain with sudo command
ubuntu@ip-172-31-33-39:~$ sudo sh setup.sh Preparing Sculptor installation... Upgrading... Installing base package... Downloading installer... Running installer... You can see detailed log in /root/installer.log Every step can take several minutes Credentials: ✔ Base Packages: ✔ Superuser: ✔ Motd: ✔ Ntp: ✔ Php Cgi: ✔ NodeJs: ✔ Nginx: ✔ MySql Server: ✔ Redis Server: ✔ Let's Encrypt: ✔ Composer: ✔ Deployer: ✔ Firewall: ✔ Crontab: ✔ Agent: ✔ Check services: ✔ Run time taken 00:02:22 Here your master credentials, save in a safe location! +-------------------+------------------------------+ | name | value | +-------------------+------------------------------+ | Public IP | xxx.xxx.xxx.xxx | | Password | xxxxxxxx | | Database Password | xxxxxxxxxx | +-------------------+------------------------------+ ubuntu@ip-172-31-33-39:~$ sudo sculptor domain:create sito1.com laravel Create domain sito1.com type laravel: Create domain sito1.com: In Process.php line 250:
The command "cd /home/www/sites/sito1.com && if [ ! -d .dep ]; then mkdir .
dep; fi" failed.
Exit Code: 1(General error)
Working directory: /home/www/sites/sito1.com
Output:
================
Error Output:
================
mkdir: cannot create directory ‘.dep’: Permission denied
deploy:prepare [-p|--parallel] [-l|--limit LIMIT] [--no-hooks] [--log LOG] [--roles ROLES] [--hosts HOSTS] [-o|--option OPTION] [--] [
the domain dir is populated:
ubuntu@ip-172-31-33-39:/home/www/sites/sito1.com$ ls -la total 32 drwxr-xr-x 6 root root 4096 Jan 2 22:14 . drwxr-xr-x 3 root root 4096 Jan 2 22:14 .. drwxr-xr-x 2 root root 4096 Jan 2 22:14 certs drwxr-xr-x 2 root root 4096 Jan 2 22:14 configs -rw-r--r-- 1 root root 2079 Jan 2 22:14 deploy.php drwxr-xr-x 2 root root 4096 Jan 2 22:14 logs drwxr-xr-x 2 root root 4096 Jan 2 22:14 shared -rw-r--r-- 1 root root 125 Jan 2 22:14 ssh_config ubuntu@ip-172-31-33-39:/home/www/sites/sito1.com$ ls -la certs/ total 8 drwxr-xr-x 2 root root 4096 Jan 2 22:14 . drwxr-xr-x 6 root root 4096 Jan 2 22:14 .. ubuntu@ip-172-31-33-39:/home/www/sites/sito1.com$ ls -la logs/ total 8 drwxr-xr-x 2 root root 4096 Jan 2 22:14 . drwxr-xr-x 6 root root 4096 Jan 2 22:14 .. ubuntu@ip-172-31-33-39:/home/www/sites/sito1.com$ ls -la configs/ total 36 drwxr-xr-x 2 root root 4096 Jan 2 22:14 . drwxr-xr-x 6 root root 4096 Jan 2 22:14 .. -rw-r--r-- 1 root root 69 Jan 2 22:14 cron.conf -rw-r--r-- 1 root root 1972 Jan 2 22:14 deployer.php -rw-r--r-- 1 root root 844 Jan 2 22:14 env -rw-r--r-- 1 root root 476 Jan 2 22:14 logrotate.conf -rw-r--r-- 1 root root 1112 Jan 2 22:14 nginx.conf -rw-r--r-- 1 root root 106 Jan 2 22:14 ssh_config -rw-r--r-- 1 root root 244 Jan 2 22:14 worker.conf
FIxed domain creation with commit 9b67821
The subject of the test is a UBUNTU 20, test with self signed certificates.
Create domain more than two domain.
Configure all the domains with setup parameters.
Setup a repository for every domain.
Setup some crontab.
Setup some workers.
Deploy every domain.
Delete one.
Check if everything works.