Skip to content

Commit 5a82371

Browse files
committed
Moved js files to other directory
1 parent b83ebc7 commit 5a82371

20 files changed

+96
-3
lines changed

Dockerfile

+12-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@ COPY config/redis.conf /etc/redis/redis.conf
1212
RUN echo mysql-server mysql-server/root_password password password | debconf-set-selections && \
1313
echo mysql-server mysql-server/root_password_again password password | debconf-set-selections && \
1414
apt-get install -y mysql-server && \
15-
mkdir -p /var/log/mysql
15+
mkdir -p /var/log/mysql && \
16+
service mysql start && \
17+
mysql -u root -ppassword -e "DELETE FROM mysql.user WHERE User='';" && \
18+
mysql -u root -ppassword -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');" && \
19+
mysql -u root -ppassword -e "DROP DATABASE IF EXISTS test;" && \
20+
mysql -u root -ppassword -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%';" && \
21+
mysql -u root -ppassword -e "FLUSH PRIVILEGES;" && \
22+
mysql -u root -ppassword -e "CREATE DATABASE 3pl_central;" && \
23+
mysql -u root -ppassword -e "CREATE USER '3pl_central'@'%' IDENTIFIED BY 'password';" && \
24+
mysql -u root -ppassword -e "GRANT ALL PRIVILEGES ON 3pl_central.* TO '3pl_central'@'%' WITH GRANT OPTION;" && \
25+
mysql -u root -ppassword -e "FLUSH PRIVILEGES;" && \
26+
service mysql stop
1627

1728
# Install PHP
1829
RUN apt-get install -y software-properties-common python-software-properties && \

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ docker run -p 80:80 it --rm --name 3pl-central smartio/3pl-central
1616
env_file: .env
1717
image: smartio/3pl-central
1818
volumes:
19-
- "/mnt/sda1/var/3pl_central_data:/data/db"
19+
- "/mnt/sda1/var/3pl_central_data:/var/lib/mysql"
2020
ports:
2121
- "80:80"
2222
```

cli-config.php

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
require_once "vendor/autoload.php";
4+
5+
use Doctrine\ORM\Tools\Setup;
6+
use Doctrine\ORM\EntityManager;
7+
8+
$paths = array("/src");
9+
$isDevMode = false;
10+
11+
// the connection configuration
12+
$dbParams = array(
13+
'driver' => 'pdo_mysql',
14+
'user' => '3pl_central',
15+
'password' => 'password',
16+
'dbname' => '3pl_central',
17+
);
18+
19+
$config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
20+
$entityManager = EntityManager::create($dbParams, $config);

composer.json

+5
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
"require": {
33
"doctrine/orm": "^2.5",
44
"predis/predis": "^1.1"
5+
},
6+
"autoload": {
7+
"psr-4": {
8+
"ThreePlCentral\\": "src/"
9+
}
510
}
611
}

config/_rabbitmq.config

-1
This file was deleted.

src/DbConnection.php

Whitespace-only changes.

src/Order/OrderEntity.php

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?php
2+
namespace ThreePlCentral\Order;
3+
4+
/**
5+
* @Entity
6+
* @Table(name="orders")
7+
*/
8+
class OrderEntity
9+
{
10+
/** @Id @Column(type="integer") @GeneratedValue */
11+
private $id;
12+
}
13+
14+
/*CustomerName
15+
CustomerEmail
16+
CustomerPhone
17+
Facility
18+
FacilityID
19+
WarehouseTransactionID
20+
ReferenceNum
21+
PONum
22+
Retailer
23+
ShipToCompanyName
24+
ShipToName
25+
ShipToEmail
26+
ShipToPhone
27+
ShipToAddress1
28+
ShipToAddress2
29+
ShipToCity
30+
ShipToState
31+
ShipToZip
32+
ShipToCountry
33+
ShipMethod
34+
MarkForName
35+
BatchOrderID
36+
CreationDate
37+
EarliestShipDate
38+
ShipCancelDate
39+
PickupDate
40+
Carrier
41+
BillingCode
42+
TotWeight
43+
TotCuFt
44+
TotPackages
45+
TotOrdQty
46+
TotLines
47+
Notes
48+
OverAllocated
49+
PickTicketPrintDate
50+
ProcessDate
51+
TrackingNumber
52+
LoadNumber
53+
BillOfLading
54+
MasterBillOfLading
55+
ASNSentDate
56+
ConfirmASNSentDate
57+
RememberRowInfo
58+
*/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)