Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dev.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
dev.biuro
Commits
845d4d16
Commit
845d4d16
authored
Jun 10, 2019
by
Simonas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README update
parent
5e912bb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
README.md
README.md
+2
-2
docker-compose.yml
docker-compose.yml
+5
-1
No files found.
README.md
View file @
845d4d16
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
-
build CSS & JS assets -
`C:\web\dev.biuro\ npm run build`
-
build CSS & JS assets -
`C:\web\dev.biuro\ npm run build`
-
build new image
`docker build -t biuro/web:1.2.1 .`
(update version number)
-
build new image
`docker build -t biuro/web:1.2.1 .`
(update version number)
-
login to biuro docker account
`docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
-
login to biuro docker account
`docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
-
push image to docker repository -
`docker push biuro/web:1.2.
0
`
-
push image to docker repository -
`docker push biuro/web:1.2.
1
`
## Production
## Production
-
update biuro/web image version in .env file (staging or www)
-
update biuro/web image version in .env file (staging or www)
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
### DB backup
### DB backup
-
`C:\web\dev.biuro> docker exec -i dev-biuro-mysql mysqldump -udev_user -pY6V6bFkD6@GyD!wTShgFmWz! --default-character-set=utf8 dev_biuro > docker/mariadb/data-004.sql`
-
`C:\web\dev.biuro> docker exec -i dev-biuro-mysql mysqldump -udev_user -pY6V6bFkD6@GyD!wTShgFmWz! --default-character-set=utf8 dev_biuro > docker/mariadb/data-004.sql`
-
`sudo docker exec -i biuro-staging-mysql mysqldump -ustaging_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 staging_biuro > docker/mariadb/data-0
19
.sql`
-
`sudo docker exec -i biuro-staging-mysql mysqldump -ustaging_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 staging_biuro > docker/mariadb/data-0
20
.sql`
-
`sudo docker exec -i biuro-www-mysql mysqldump -uwww_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 www_biuro > docker/mariadb/data-018.sql`
-
`sudo docker exec -i biuro-www-mysql mysqldump -uwww_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 www_biuro > docker/mariadb/data-018.sql`
### DB restore
### DB restore
...
...
docker-compose.yml
View file @
845d4d16
...
@@ -155,17 +155,19 @@ services:
...
@@ -155,17 +155,19 @@ services:
/bin/sh -c '
/bin/sh -c '
sleep 180;
sleep 180;
echo "WP CLI init";
echo "WP CLI init";
wp core update --force;
wp core update --force;
wp core update-db --network;
wp core update-db --network;
# wp option update permalink_structure "/%postname%/" --skip-themes --skip-plugins;
# wp option update permalink_structure "/%postname%/" --skip-themes --skip-plugins;
# wp option update timezone_string "Manual Offsets/UTC+2";
# wp option update timezone_string "Manual Offsets/UTC+2";
# wp option update date_format "Y-m-d";
# wp option update date_format "Y-m-d";
# wp option update time_format "H:i";
# wp option update time_format "H:i";
# wp plugin install loco-translate --version=2.3.0 --activate-network;
# wp plugin install loco-translate --version=2.3.0 --activate-network;
# wp plugin install pods --version=2.7.12 --activate-network;
# wp plugin install pods --version=2.7.12 --activate-network;
# wp plugin install polylang --version=2.5.4 --activate-network;
# wp plugin install polylang --version=2.5.4 --activate-network;
# wp plugin install wordpress-seo --version=11.3 --activate-network;
# wp plugin install wordpress-seo --version=11.3 --activate-network;
wp plugin update akismet --version=4.1.2;
wp plugin update akismet --version=4.1.2;
wp plugin update hello --version=1.7.2;
wp plugin update hello --version=1.7.2;
...
@@ -181,7 +183,9 @@ services:
...
@@ -181,7 +183,9 @@ services:
# wp plugin activate jobs-importer --network;
# wp plugin activate jobs-importer --network;
# wp theme update --all;
# wp theme update --all;
# wp theme activate biuro;
# wp theme activate biuro;
wp language core update;
wp language core update;
# wp language theme update --all;
# wp language theme update --all;
# wp language plugin update --all;
# wp language plugin update --all;
echo "WP CLI done. Ready to use.";
echo "WP CLI done. Ready to use.";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment