The app has 2 parts
- Blog (Wordpress app)
- Site (Ember app)
The blog is deployed using docker image.
# ssh to server
cd projects/blog/
# to start / restart
docker-compose up -d
# to stop
docker-compose down
# to read logs
docker-compose logs -f
The blog files location is inside wordpress folder. you can edit the blog wordpress config using
cd /home/ubuntu/projects/blog/wordpress
vi wp-config.php
Site in ember app on location /home/ubuntu/projects/primathon-ember-web
Below pm2 commands are used to deploy the app
pm2 start /home/ubuntu/projects/primathon-ember-web/start.sh --name prima-web
# to stop
pm2 stop prima-web
- assets path are redirected once we replace the /blog/wp-* part of request_uri and redirect to blog app at 8180
- the /blog pages are served using 8180 directly
- the site page with / path are sent to ember app.
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
git clone <repository-url>
this repositorycd primathon-ember-web
yarn install
ember serve
- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
- Access primathon site server
- Step-1 -
cd /home/ubuntu/projects/primathon-ember-web/
- Step-2 -
git checkout master
- Step-3 -
git pull origin master
- Step-4 -
bash deploy-to-s3-prod.sh
- Access primathon site server
- Step-1 -
git checkout master
- Step-2 -
git pull origin master
- Step-3 -
bash redeploy-prima-site.sh
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
npm run lint
npm run lint:fix
ember build
(development)ember build --environment production
(production)
Specify what it takes to deploy your app.