doc files and deployment
This commit is contained in:
parent
52ddff10f0
commit
3c62e1e04b
|
@ -0,0 +1,15 @@
|
|||
> Why do I have a folder named ".expo" in my project?
|
||||
|
||||
The ".expo" folder is created when an Expo project is started using "expo start" command.
|
||||
|
||||
> What do the files contain?
|
||||
|
||||
- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds.
|
||||
- "packager-info.json": contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator.
|
||||
- "settings.json": contains the server configuration that is used to serve the application manifest.
|
||||
|
||||
> Should I commit the ".expo" folder?
|
||||
|
||||
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
|
||||
|
||||
Upon project creation, the ".expo" folder is already added to your ".gitignore" file.
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"hostType": "lan",
|
||||
"lanType": "ip",
|
||||
"dev": true,
|
||||
"minify": false,
|
||||
"urlRandomness": null,
|
||||
"https": false
|
||||
}
|
|
@ -9,12 +9,12 @@ import tempfile
|
|||
|
||||
# --------------------------------------------- Config ----------------------------------------------------------
|
||||
|
||||
NODE_PATH = "/home/martin/node-v14.17.0-linux-x64/bin"
|
||||
JDK8_PATH = "/usr/lib/jvm/java-8-openjdk-amd64/bin/"
|
||||
NODE_PATH = "/home/martin/node-v18.18.0-linux-x64/bin"
|
||||
JDK8_PATH = "/usr/lib/jvm/java-11-openjdk-amd64/bin/"
|
||||
|
||||
PUBLIC_URL = "https://swimtracker.bauer.tech"
|
||||
DEPLOY_HOST = "server"
|
||||
DEPLOY_PATH = "/volumes/swimtracker"
|
||||
DEPLOY_PATH = "/docker/web/volumes/static-sites/swimtracker"
|
||||
|
||||
APP_UPDATE_FOLDER = "app-update"
|
||||
APP_FOLDER = "app"
|
||||
|
@ -90,8 +90,7 @@ def deploy_apk_update_files():
|
|||
def deploy_apk():
|
||||
with tempfile.TemporaryDirectory() as tmpdirname:
|
||||
apk_file = os.path.join(tmpdirname, "app.apk")
|
||||
cmd = ["turtle", "build:android", "--type", "apk", "--public-url", android_idx_url,
|
||||
"-o", apk_file]
|
||||
cmd = ["eas", "build", "--platform", "android", "--local", "--profile", "production", "--output", "app.apk"]
|
||||
subprocess.check_call(cmd, env=env_with_node_path)
|
||||
target_file = os.path.join(DEPLOY_PATH, APP_FOLDER, f"swimtracker-{version_name}.apk")
|
||||
scp.put(apk_file, target_file)
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
swimtracker-4525a0 Garten
|
||||
swimtracker-452700 Testgerat
|
|
@ -12,3 +12,19 @@ scp -r dist/* root@server:"/volumes/swimtracker/app-update/"
|
|||
apt install openjdk-8-jdk-headless
|
||||
export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:$PATH
|
||||
turtle build:android --type apk --public-url https://swimtracker.bauer.tech/app-update/android-index.json -o app.apk
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# New
|
||||
|
||||
|
||||
npm install -g eas-cli
|
||||
|
||||
|
||||
# check eas.json from profiles
|
||||
eas build --platform android --local --profile production
|
||||
|
||||
eas build --platform android --local --profile preview --output swimtracker-0.1.apk
|
Loading…
Reference in New Issue