Hosting An App On Your Servers


#1

C:\Users\sop.son\Desktop\test>expo export --public-url http://10.20.84.41:19000 --dev [14:35:44] Cannot find module ‘validator’ [14:35:44] Set EXPO_DEBUG=true in your env to view the stack trace. C:\Users\sop.son\Desktop\test>expo export [14:36:01] Missing required option: --public-url C:\Users\sop.son\Desktop\test>expo export


#2

I’m not really sure what to do with this question. To me this doesn’t look like a question at all.

Please explain your issue instead of posting an error code.

Thanks in advance


#3

Hi @rauldeheer!
I excite with api “hosting an app on your servers”.
I have build project on server with cdn, when i exec cmd “expo export” on terminal
example
$ expo export
[15:28:35] Missing required option: --public-url

after i try
expo export --public-url http://10.20.84.41:19000 --dev
[14:35:44] Cannot find module ‘validator’ [14:35:44] Set EXPO_DEBUG=true in your env to view the stack trace.

… this’s error or i missing step


#4

In your .expo folder please change this:

{
  "hostType": "lan",
  "lanType": "ip",
  "dev": true,
  "minify": false,
  "urlRandomness": "89-pfa"
}

To this:

{
  "hostType": "lan",
  "lanType": "ip",
  "dev": false,
  "minify": false,
  "urlRandomness": "89-pfa"
}

Let me know if that works!


#5


i try and same


#6


likely expo-cli missing module ‘validator’


#7

What NPM version do you have? Try to run npm -v to see the current version.


#8

im using ver 6.0.1


#9

after install node, npm, expo-cli lastest. and install package ‘validator’ in user…\Roaming\npm\node_modules/expo-cli
then export successfully.
But I cmd expo build:android --public-url
in progess build android

[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ‘:app:mergeProdMinSdkProdKernelReleaseResources’.
[stderr] > Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 5m 19s
670 actionable tasks: 670 executed
Error: Process exited with non-zero code: 1
at ChildProcess.child.on (/app/node_modules/@expo/spawn-async/build/spawnAsync.js:39:21)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)


#10

this is one in all build


Build android fail sdk 30
#11

Try installing validator as a global module “npm i -g validator”. That fixed the issue for me.


#12

I had done! and build Build standalone app successful.
But currently, I facing problem OTA update . not loading new bundle


#13

I had done test on github page and gitlab page and pass ,but my host using is iis server with http:// . I don’t know reason?


closed #14

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.