mirror of
https://github.com/frappe/frappe_docker.git
synced 2025-04-04 08:21:50 +00:00
Added bench init , start and python tests to curl the site
This commit is contained in:
parent
06ff744f7b
commit
3f148638fb
10
.travis.yml
10
.travis.yml
@ -8,7 +8,6 @@ services:
|
|||||||
- docker
|
- docker
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pkill mysqld
|
|
||||||
- docker-compose build
|
- docker-compose build
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
|
|
||||||
@ -18,4 +17,11 @@ script:
|
|||||||
- docker-compose ps | grep -i redis-queue
|
- docker-compose ps | grep -i redis-queue
|
||||||
- docker-compose ps | grep -i redis-socketio
|
- docker-compose ps | grep -i redis-socketio
|
||||||
- docker-compose ps | grep -i mariadb
|
- docker-compose ps | grep -i mariadb
|
||||||
# -python test.py
|
- docker exec -i frappe bash -c "cd .. && bench init frappe-bench --skip-bench-mkdir --skip-redis-config-generation && cd frappe-bench"
|
||||||
|
- docker exec -i frappe bash -c "mv Procfile_docker Procfile && mv sites/common_site_config_docker.json sites/common_site_config.json"
|
||||||
|
- docker exec -i frappe bash -c "bench get-app erpnext https://github.com/frappe/erpnext"
|
||||||
|
- docker exec -i frappe bash -c "bench --site site1.local install-app erpnext"
|
||||||
|
- docker exec -i -u root frappe bash -c "echo 127.0.0.1 site1.local >> /etc/hosts"
|
||||||
|
- docker exec -id frappe bash -c "bench start"
|
||||||
|
- echo 127.0.0.1 site1.local >> /etc/hosts
|
||||||
|
- python test.py
|
||||||
|
@ -1,19 +1,20 @@
|
|||||||
{
|
{
|
||||||
"auto_update": false,
|
"auto_update": false,
|
||||||
"background_workers": 1,
|
"background_workers": 1,
|
||||||
"db_host": "mariadb",
|
"db_host": "mariadb",
|
||||||
"file_watcher_port": 6787,
|
"file_watcher_port": 6787,
|
||||||
"frappe_user": "frappe",
|
"frappe_user": "frappe",
|
||||||
"gunicorn_workers": 4,
|
"gunicorn_workers": 4,
|
||||||
"rebase_on_pull": false,
|
"rebase_on_pull": false,
|
||||||
"redis_cache": "redis://redis-cache:13000",
|
"redis_cache": "redis://redis-cache:13000",
|
||||||
"redis_queue": "redis://redis-queue:11000",
|
"redis_queue": "redis://redis-queue:11000",
|
||||||
"redis_socketio": "redis://redis-socketio:12000",
|
"redis_socketio": "redis://redis-socketio:12000",
|
||||||
"restart_supervisor_on_update": false,
|
"restart_supervisor_on_update": false,
|
||||||
"root_password": "123",
|
"root_password": "123",
|
||||||
"serve_default_site": true,
|
"serve_default_site": true,
|
||||||
"shallow_clone": true,
|
"shallow_clone": true,
|
||||||
"socketio_port": 9000,
|
"socketio_port": 9000,
|
||||||
"update_bench_on_update": true,
|
"update_bench_on_update": true,
|
||||||
"webserver_port": 8000
|
"webserver_port": 8000,
|
||||||
}
|
"admin_password": "admin"
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user