小程序页面之间进行传值的操作办法
706
2022-10-27
一个简单的示例,说明如何构建单个Vue应用程序
Vue Monolith Example
A simple example of how to structure a monolithic Vue application, with the frontend and backend both living within the same codebase.
Development
NOTE: This project relies on Yarn as an alternative to NPM. To install Yarn, follow these instructions.
To start your development server:
yarn dev
Once it's started, you'll see a local URL you can use to access it (by default, http://localhost:8080 if it's available). Note that all routes starting with /api/ are automatically proxied to your backend server.
Deployment
Using Now
now
Using Heroku
Only the first time, to create your app:heroku create Push the Git branch you want to deploy to Heroku:git push heroku branch-to-deploy:master
Manual deployment
During your build process, make sure to:
Install dependencies, using the exact versions in your lockfileyarn install --frozen-lockfile Build the frontendyarn build
Then start your application with:
yarn start
By default, it will be available at http://localhost:9090, but the port can be configured with a PORT environment variable.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~