-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Changing db owner and enhance readME (#2136)
- Loading branch information
1 parent
5d25020
commit f9da1b8
Showing
6 changed files
with
113 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Deploying on Heroku : | ||
|
||
## Prerequisites | ||
|
||
You will need the following things properly installed on your computer. | ||
|
||
Git | ||
Node.js (with NPM) | ||
Ember CLI | ||
PhantomJS | ||
Running Locally | ||
|
||
## Deploying to Heroku | ||
|
||
```` | ||
$ heroku create --buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/emberjs.tgz | ||
$ git push heroku master | ||
$ heroku open | ||
```` | ||
|
||
|
||
|
||
## Further Reading / Useful Links | ||
|
||
* [Heroku Ember.js Buildpack](https://github.com/heroku/heroku-buildpack-emberjs) | ||
* [ember.js](https://emberjs.com/) | ||
* [ember-cli](https://ember-cli.com/) | ||
* Development Browser Extensions | ||
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi) | ||
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Deploying on Kubernetes | ||
|
||
## For deploying on Kubernetes, you need following things properly installed on your local machine: | ||
|
||
* [Docker](https://docs.docker.com/install/) | ||
* [Docker Machine](https://docs.docker.com/machine/install-machine/) | ||
* [Google Cloud SDK](https://cloud.google.com/sdk/docs/quickstarts) | ||
* [VirtualBox](https://www.virtualbox.org/wiki/Linux_Downloads) | ||
|
||
#### Enabling Google Kubernetes Engine API: | ||
* Visit the [Kubernetes Engine page](https://console.cloud.google.com/projectselector/kubernetes?_ga=2.190554988.-672712410.1518259944) in the Google Cloud Platform Console. | ||
* Create or select a project. | ||
* Wait for the API and related services to be enabled. | ||
|
||
##### Creating local VM | ||
* `docker-machine create --driver virtualbox default` | ||
* `docker-machine env default` | ||
* `eval "$(docker-machine env default)"` | ||
|
||
##### Installing Kubernetes Command line tool: | ||
* `gcloud components install kubectl` | ||
|
||
##### Building and deploying the container image: | ||
* `export PROJECT_ID="$(gcloud config get-value project -q)"` | ||
* `docker build -t gcr.io/${PROJECT_ID}/badgeyay:v1 .` (Build Container Image) | ||
* `gcloud docker -- push gcr.io/${PROJECT_ID}/badgeyay:v1` (Push Container Image) | ||
* `gcloud container clusters create badgeyay-cluster --num-nodes=3` (Create Container cluster) | ||
* `kubectl run badgeyay-web --image=gcr.io/${PROJECT_ID}/badgeyay:v1 --port 4200` (Deploy your application) | ||
* `kubectl expose deployment badgeyay-web --type=LoadBalancer --port 80 --target-port 4200` (Expose deployment over the Internet) | ||
* `kubectl get service` | ||
* Copy the External-IP from the showed list corresponding to your cluster's name and run it in your browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Local Installation | ||
|
||
## Prerequisites | ||
|
||
You will need the following things properly installed on your computer. | ||
|
||
* [Git](https://git-scm.com/) | ||
* [Node.js](https://nodejs.org/) (with npm) (Preferred version is v9.11.2) (It's tricky to install npm on most system, maybe use nvm) | ||
* [Ember CLI](https://ember-cli.com/) | ||
* [Google Chrome](https://google.com/chrome/) (for testing purposes only) | ||
|
||
## Installation | ||
|
||
To install the app, run the following commands in a command line: | ||
|
||
* `git clone https://github.com/fossasia/badgeyay` | ||
* `cd badgeyay/frontend` | ||
* `npm install` | ||
* `yarn install` | ||
## Running locally: | ||
|
||
To run the app locally on your machine, run the following commands in a command line: | ||
|
||
* `ember serve` | ||
* Visit your app at [http://localhost:4200](http://localhost:4200). | ||
* Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests). | ||
|
||
### Running Tests | ||
|
||
* `ember test` | ||
* `ember test --server` | ||
|
||
### Building | ||
|
||
* `ember build` (development) | ||
* `ember build --environment production` (production) | ||
|
||
## Further Reading / Useful Links | ||
|
||
* [Heroku Ember.js Buildpack](https://github.com/heroku/heroku-buildpack-emberjs) | ||
* [ember.js](https://emberjs.com/) | ||
* [ember-cli](https://ember-cli.com/) | ||
* Development Browser Extensions | ||
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi) | ||
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
"autoInstall": true, | ||
"rtl": false, | ||
"version": "2.4.2" | ||
} | ||
} |