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
a4e9f1cc
Commit
a4e9f1cc
authored
Mar 08, 2019
by
Simonas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server update
parent
91423d2e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
86 deletions
+35
-86
README.md
README.md
+6
-16
docker-compose.yml
docker-compose.yml
+0
-7
index.php
wp-content/themes/biuro/index.php
+29
-0
search.php
wp-content/themes/biuro/search.php
+0
-63
No files found.
README.md
View file @
a4e9f1cc
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,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-00
4
.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-00
5
.sql`
### DB restore
### DB restore
-
`C:\web\dev.biuro> docker exec -i dev-biuro-mysql mysql -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 mysql -udev_user -pY6V6bFkD6@GyD!wTShgFmWz! --default-character-set=utf8 dev_biuro < docker/mariadb/data-004.sql`
...
@@ -88,24 +88,13 @@ Restart docker (sometimes PC restart may be required)
...
@@ -88,24 +88,13 @@ Restart docker (sometimes PC restart may be required)
-
docker restart dev-biuro-nginx
-
docker restart dev-biuro-nginx
-
docker restart dev-biuro-wordpress
-
docker restart dev-biuro-wordpress
-
docker push simoncereska/ourdemo
-
sudo docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
-
docker pull simoncereska/ourdemo:0.0.0
-
sudo docker login --username=simoncereska --password=rlgjsPeOuF2T6VgW8fGss81h
-
sudo docker-compose up -d
-
sudo docker-compose up -d
-
sudo docker restart staging-biuro-nginx
-
sudo docker restart staging-biuro-nginx
-
curl docker
-
curl docker
-
docker run -d -p 80:80 release:0.0.0
-
docker run -d -p 80:80 -p 443:443 release:0.0.0
-
docker run -d -p 80:80 simoncereska/ourdemo:0.0.1
-
docker run -it simoncereska/ourdemo
-
docker build -t release:0.0.0 .
-
docker images
-
docker images
-
docker rmi 568c4670fa80
-
docker rmi 568c4670fa80
...
@@ -114,9 +103,10 @@ Restart docker (sometimes PC restart may be required)
...
@@ -114,9 +103,10 @@ Restart docker (sometimes PC restart may be required)
-
docker load --input ourdemo.tar
-
docker load --input ourdemo.tar
-
docker build -t simoncereska/biuro-staging:0.0.9 .
-
docker build -t biuro/web:0.0.1 .
-
docker login --username=simoncereska --password=rlgjsPeOuF2T6VgW8fGss81h
-
docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
-
docker push simoncereska/biuro-staging:0.0.9
-
docker push biuro/web:0.0.1
-
docker pull biuro/web:0.0.0
-
sudo chown -R www-data:www-data wordpress/wp-content/plugins
-
sudo chown -R www-data:www-data wordpress/wp-content/plugins
...
...
docker-compose.yml
View file @
a4e9f1cc
...
@@ -74,13 +74,6 @@ services:
...
@@ -74,13 +74,6 @@ services:
-
./nginx/redirects:/etc/nginx/redirects
-
./nginx/redirects:/etc/nginx/redirects
-
./nginx/cache:/var/cache/nginx
-
./nginx/cache:/var/cache/nginx
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf
# - ./nginx:/etc/nginx/conf.d
# - ./nginx/conf.d:/etc/nginx/conf.d
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf
-
./logs/nginx:/var/log/nginx
-
./logs/nginx:/var/log/nginx
-
./certs:/etc/letsencrypt
-
./certs:/etc/letsencrypt
-
./certs-data:/data/letsencrypt
-
./certs-data:/data/letsencrypt
...
...
wp-content/themes/biuro/index.php
0 → 100644
View file @
a4e9f1cc
<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Biuro
* @since 1.0
* @version 1.0
*/
get_header
();
?>
<?php
while
(
have_posts
()
)
:
the_post
();
the_content
();
endwhile
;
?>
<?php
get_footer
();
wp-content/themes/biuro/search.php
View file @
a4e9f1cc
<?php
/**
*
get_header(); ?>
<?php
global $query_string;
$query_args = explode("&", $query_string);
debug( $query_args );
$search_query = array();
foreach($query_args as $key => $string) {
$query_split = explode("=", $string);
$search_query[$query_split[0]] = urldecode($query_split[1]);
} // foreach
debug( $search_query );
$the_query = new WP_Query($search_query);
// $query = new WP_Query( array( 'author_name' => 'carlo' ) );
// $args = array(
// 'post_type' => 'accommodation',
// 'meta_query' => array(
// array( 'key' => 'city', 'value' => 'Paris', 'compare' => 'LIKE' ),
// array( 'key' => 'type', 'value' => 'room', 'compare' => 'LIKE' ),
// 'relation' => 'AND'
// )
// );
// $the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) :
?>
<!-- the loop -->
<h1>Lorem ipsum - Search</h1>
<ul>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<li>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php endwhile; ?>
</ul>
<!-- end of the loop -->
<?php wp_reset_postdata(); ?>
<?php else : ?>
<h1>Lorem ipsum - Search</h1>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
<?php get_footer();
*/
?>
<?php
<?php
/**
/**
* Template Name: Search & Jobs page
* Template Name: Search & Jobs page
...
...
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