Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pitube
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
pitube
Commits
4a8755d5
Verified
Commit
4a8755d5
authored
5 years ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Odstranen zbytecny modul
parent
e0c77df4
No related branches found
No related tags found
No related merge requests found
Pipeline
#681
passed
5 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/PiTube.pm
+1
-4
1 addition, 4 deletions
lib/PiTube.pm
with
1 addition
and
4 deletions
lib/PiTube.pm
+
1
−
4
View file @
4a8755d5
package
PiTube
;
package
PiTube
;
use
Mojo::
Base
'
Mojolicious
';
use
Mojo::
Base
'
Mojolicious
';
use
Mojo::
Home
;
use
Mojo::
Pg
;
use
Mojo::
Pg
;
use
Net::OAuth2::Profile::
WebServer
;
use
Net::OAuth2::Profile::
WebServer
;
use
Mojolicious::Plugin::
Authentication
;
use
Mojolicious::Plugin::
Authentication
;
...
@@ -19,15 +18,13 @@ sub startup {
...
@@ -19,15 +18,13 @@ sub startup {
$self
->
plugin
('
PiTube::Helpers::OAuth2
');
$self
->
plugin
('
PiTube::Helpers::OAuth2
');
my
$home
=
Mojo::
Home
->
new
()
->
detect
;
# migrace schematu
# migrace schematu
my
$pg
=
Mojo::
Pg
->
new
my
$pg
=
Mojo::
Pg
->
new
->
dsn
(
$cfg
->
{
database
}{
dsn
})
->
dsn
(
$cfg
->
{
database
}{
dsn
})
->
username
(
$cfg
->
{
database
}{
user
})
->
username
(
$cfg
->
{
database
}{
user
})
->
password
(
$cfg
->
{
database
}{
password
})
->
password
(
$cfg
->
{
database
}{
password
})
;
;
$pg
->
migrations
->
from_file
(
"
$home
/sql/migrations.sql
"
);
$pg
->
migrations
->
from_file
(
$self
->
home
.
'
/sql/migrations.sql
'
);
$pg
->
migrations
->
migrate
();
$pg
->
migrations
->
migrate
();
# Spojeni s databazi
# Spojeni s databazi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment