Skip to content

Laravel Vuejs project how to use Index.php instead of index.html? #3577

Closed Answered by jcesarmobile
stephenjason89 asked this question in Q&A
Discussion options

You must be logged in to vote

You can't, PHP only works on a server and Capacitor can't run a PHP server inside.

The only way is pointing to a remote PHP server hosting the index.php, something like this, but it's not really recommended to point to an url in production apps and it can lead to app rejections.

"server": {
  "url": "https://url.to.a.php.server/index.php"
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@stephenjason89
Comment options

@jcesarmobile
Comment options

Answer selected by stephenjason89
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants