This repository has been archived by the owner on Feb 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Showcase provisioning #6
Open
wrousseau
wants to merge
1
commit into
master
Choose a base branch
from
#5-showcase-provisioning
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,10 +30,12 @@ Since the API needs a lot of Composer dependencies, you need a token from GitHub | |
- Clone the API and frontend repositories with the commands: | ||
- `git clone [email protected]:GroupEat/groupeat-api.git ../groupeat-api` | ||
- `git clone [email protected]:GroupEat/groupeat-frontend.git ../groupeat-frontend` | ||
- `git clone [email protected]:GroupEat/groupeat-showcase.git ../groupeat-showcase` | ||
- Fill the missing data if any in `../groupeat-api/example.env` and copy this file to `../groupeat-api/.env`. | ||
- Add `192.168.10.10 groupeat.dev` to your hosts file. | ||
- Run the `vagrant box update` and `vagrant up` commands and wait for them to finish (a few minutes depending on your internet connection). | ||
- In the `groupeat-frontend` directory, install the dependencies with `npm install` and build with `gulp build`. | ||
- In the `groupeat-showcase` directory, install the dependencies with `npm install`, `bower install` and build with `gulp release`. | ||
- Browse to http://groupeat.dev and make sure it works. | ||
|
||
# Updating | ||
|
@@ -46,6 +48,7 @@ Since the API needs a lot of Composer dependencies, you need a token from GitHub | |
|
||
- API: every bash command should be executed inside the VM. For that SSH into it with the `vagrant ssh` command. | ||
- Frontend: every bash command should be executed on the host machine (ie. directly on your OS). This is because the `gulp watch` task and Livereload do not play nicely with Vagrant. | ||
- Showcase: every bash command should be executed on the host machine (ie. directly on your OS). This is because the `gulp dev` task and Livereload do not play nicely with Vagrant. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not needed as you use webpack dev server and not livereload |
||
|
||
## Administration zone | ||
|
||
|
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 |
---|---|---|
|
@@ -15,6 +15,12 @@ cd ../groupeat-frontend | |
npm install | ||
gulp build | ||
|
||
echo "Building the showcase" | ||
cd ../groupeat-showcase | ||
npm install | ||
bower install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done by npm install |
||
gulp release | ||
|
||
echo "Cd into project root" | ||
cd $projectRoot | ||
|
||
|
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 |
---|---|---|
|
@@ -29,3 +29,12 @@ | |
when: frontend.stat.exists == false | ||
local_action: shell cd ../groupeat-frontend; gulp deploy --{{ deploy_connection }} | ||
sudo: false | ||
|
||
- name: Check if showcase is already deployed | ||
stat: path=~vagrant/showcase | ||
register: showcase | ||
|
||
- name: Deploy showcase | ||
when: showcase.stat.exists == false | ||
local_action: shell cd ../groupeat-showcase; gulp deploy --{{ deploy_connection }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this won't work, the deploy task of frontend use rsync to copy the dist folder to the server corresponding to deploy_connection. You need to add an equivalent task by using rsync or shipit if you prefer. |
||
sudo: false |
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
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 |
---|---|---|
|
@@ -18,6 +18,13 @@ else | |
git clone [email protected]:GroupEat/groupeat-frontend.git ../groupeat-frontend | ||
fi | ||
|
||
if [ -d ../groupeat-showcase ]; then | ||
echo "GroupEat showcase repository already exists" | ||
else | ||
echo "Cloning GroupEat showcase repository" | ||
git clone [email protected]:GroupEat/groupeat-showcase.git ../groupeat-showcase | ||
fi | ||
|
||
echo "Cd into groupeat-api" | ||
cd ../groupeat-api | ||
|
||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use local version of bower through the postinstall hook pls